| Run ID | 作者 | 问题 | 语言 | 测评结果 | Time | Memory | 代码长度 | 提交时间 |
|---|---|---|---|---|---|---|---|---|
| 124310 | 陶婉晴 | 13判断质数 | C++ | Wrong Answer | 0 MS | 268 KB | 252 | 2025-07-11 11:30:01 |
#include<iostream> using namespace std; int main() { int n,i; bool flag=true; cin>>n; for(i=2;i<n;i++) { if(n%i==0){ flag=false; break; } } if(flag) cout<<"yes"<<endl; else cout<<"no"<<endl; return 0; }
------Input------
157
------Answer-----
Yes
------Your output-----
yes