| Run ID | 作者 | 问题 | 语言 | 测评结果 | Time | Memory | 代码长度 | 提交时间 |
|---|---|---|---|---|---|---|---|---|
| 132180 | 蔡胤泽 | 判断素数 | C++ | Accepted | 47 MS | 268 KB | 293 | 2025-10-07 11:16:20 |
#include <iostream> using namespace std; int main(){ int m; cin >>m; int x = m - 1; int a= 0; while(x > 1) { if(m % x == 0) { a = 1;break; } x = x - 1; } if(a == 0) { cout << "prime"; } else { cout << "not prime"; } return 0; }