| Run ID | 作者 | 问题 | 语言 | 测评结果 | Time | Memory | 代码长度 | 提交时间 |
|---|---|---|---|---|---|---|---|---|
| 86869 | 张曦 | 100至200之间的所有素数 | C++ | Accepted | 1 MS | 260 KB | 386 | 2024-07-28 21:55:20 |
#include <bits/stdc++.h> using namespace std; int main() { for(int n = 100; n <= 200; ++n) { int f = 0; if(n == 1) f = 1; for(int i = 2; i < n; ++i){ if(n % i == 0){ f = 1; break; } } if(f == 0) cout << n << endl; } return 0; }