| Run ID | 作者 | 问题 | 语言 | 测评结果 | Time | Memory | 代码长度 | 提交时间 |
|---|---|---|---|---|---|---|---|---|
| 129131 | 王晏林 | 14判断素数III | C++ | Wrong Answer | 1 MS | 268 KB | 289 | 2025-08-22 11:21:45 |
#include<iostream> using namespace std; int main(){ int n; bool flag; flag=true; cin>>n; for(int i=2;i<n;i++){ if(n%i==0){ flag=false; break; } } if(flag==true){ cout<<"Yes"<<endl; } else{ cout<<"No"<<endl; } return 0; }
------Input------
991
------Answer-----
YES
------Your output-----
Yes