| Run ID | 作者 | 问题 | 语言 | 测评结果 | Time | Memory | 代码长度 | 提交时间 |
|---|---|---|---|---|---|---|---|---|
| 68068 | 汤 | 14判断素数III | C++ | Accepted | 1 MS | 276 KB | 291 | 2024-03-18 21:13:27 |
#include<iostream> using namespace std; int main() { int a,i; bool j=true; cin>>a; for(i=2;i<a;i++) { if(a%i==0) { j=false; break; } } if(j==true) { cout<<"YES"; } else { cout<<"NO"; } return 0; }