| Run ID | 作者 | 问题 | 语言 | 测评结果 | Time | Memory | 代码长度 | 提交时间 |
|---|---|---|---|---|---|---|---|---|
| 68065 | 汤 | 14判断素数III | C++ | Wrong Answer | 1 MS | 264 KB | 304 | 2024-03-18 20:44:43 |
#include<iostream> using namespace std; int main() { int a,i; bool j=true; cin>>a; for(i=2;i<a;i++) { if(i==0) { j=false; break; } } if(j==true) { cout<<"是素数"; } else { cout<<"不是素数"; } return 0; }
------Input------
991
------Answer-----
YES
------Your output-----
是素数