| Run ID | 作者 | 问题 | 语言 | 测评结果 | Time | Memory | 代码长度 | 提交时间 |
|---|---|---|---|---|---|---|---|---|
| 75702 | 陈昊然 | 13判断质数 | C++ | Wrong Answer | 0 MS | 264 KB | 220 | 2024-05-28 19:15:58 |
#include <bits/stdc++.h> using namespace std; int main (){ int a,e=1; cin>>a; for(int i=1;i<=a-1;i++){ if (a%i==0){ e=0; } } if(e==0){ cout<<"No"; }else{ cout<<"Yes"; } return 0; }
------Input------
157
------Answer-----
Yes
------Your output-----
No