| Run ID | 作者 | 问题 | 语言 | 测评结果 | Time | Memory | 代码长度 | 提交时间 |
|---|---|---|---|---|---|---|---|---|
| 76295 | cfx | 100至200之间的所有素数 | C++ | Accepted | 1 MS | 264 KB | 346 | 2024-06-02 10:56:13 |
#include<bits/stdc++.h> using namespace std; int main() { int zs=1; int i; for(int j=100;j<=200;j++) { for(i=2;i<j;i++) { if(j%i==0) { zs=0; break; } } if(zs==1) { cout<<i<<endl; } zs=1; } return 0; }