| Run ID | 作者 | 问题 | 语言 | 测评结果 | Time | Memory | 代码长度 | 提交时间 |
|---|---|---|---|---|---|---|---|---|
| 124012 | 陈华仁星 | 13判断质数 | C++ | Wrong Answer | 1 MS | 204 KB | 251 | 2025-07-10 15:56:37 |
#include <cstdio> #include <algorithm> using namespace std; int main() { int n,cnt; scanf("%d",&n); for(int i=1;i<=n;i++) { if(n%i==0) cnt++; } if(cnt==2) { printf("Yes"); } else { printf("No"); } return 0; }
------Input------
157
------Answer-----
Yes
------Your output-----
No