| Run ID | 作者 | 问题 | 语言 | 测评结果 | Time | Memory | 代码长度 | 提交时间 |
|---|---|---|---|---|---|---|---|---|
| 80100 | 李雨昊 | 判断素数 | C++ | Wrong Answer | 0 MS | 268 KB | 218 | 2024-07-11 11:06:12 |
#include<iostream> #include<cstdio> using namespace std; int main() { int a; cin>>a; for (int i = 2; i <= a-1; i++) { if(a%i == 0){ cout<<"不是素数"; return 0; } } cout<<"是素数"; }
------Input------
318932943
------Answer-----
No
------Your output-----
不是素数