| Run ID | 作者 | 问题 | 语言 | 测评结果 | Time | Memory | 代码长度 | 提交时间 |
|---|---|---|---|---|---|---|---|---|
| 75746 | 王馨桐 | 13判断质数 | C++ | Wrong Answer | 0 MS | 272 KB | 245 | 2024-05-28 19:36:00 |
#include<bits/stdc++.h> using namespace std; int main(){ int n; cin >>n; int flag=1; for(int i=2; i<=n-1; i++){ if(n%i==0){ flag=0; } } if(flag==0&&n>1){ cout <<"Yes"; }else{ cout <<"No"; } return 0; }
------Input------
157
------Answer-----
Yes
------Your output-----
No