| Run ID | 作者 | 问题 | 语言 | 测评结果 | Time | Memory | 代码长度 | 提交时间 |
|---|---|---|---|---|---|---|---|---|
| 163329 | 金浩宸 | 100至200之间的所有素数 | C++ | Accepted | 1 MS | 256 KB | 354 | 2026-10-24 19:50:08 |
#include <iostream> using namespace std; bool isPrime(int n) { for(int i = 2; i * i <= n; i++) { if(n % i == 0) return false; } return true; } int main() { for(int x = 100; x <= 200; x++) { if(isPrime(x)) { cout << x << endl; } } return 0; }