Run ID | 作者 | 问题 | 语言 | 测评结果 | Time | Memory | 代码长度 | 提交时间 |
---|---|---|---|---|---|---|---|---|
106768 | 6张轶涵 | 100至200之间的所有素数 | C++ | Accepted | 1 MS | 260 KB | 241 | 2025-01-16 16:23:39 |
#include <bits/stdc++.h> using namespace std; bool f; int main() { for(int n=100;n<=200;n++) { for(int i=2;i<n;i++) { if(n%i==0) { f=1; } } if(f==0) { cout<<n<<endl; } f=0; } return 0; }