Run ID | 作者 | 问题 | 语言 | 测评结果 | Time | Memory | 代码长度 | 提交时间 |
---|---|---|---|---|---|---|---|---|
6188 | 吴承熹 | 100至200之间的所有素数 | C++ | Wrong Answer | 0 MS | 256 KB | 351 | 2025-01-11 10:40:49 |
#include<iostream> using namespace std; int main(){ int n=100,a=0; for(int i=n;i<=200;i++){ n++; for(int y=1;y<=n;y++){ if(i%y==0){ a++; //cout<<a<<" "; } } if(a==2){ cout<<n<<" "; } a=0; } return 0; }
------Input------
0
------Answer-----
101 103 107 109 113 127 131 137 139 149 151 157 163 167 173 179 181 191 193 197 199
------Your output-----
102 104 108 110 114 128 132 138 140 150 152 158 164 168 174 180 182 192 194 198 200