| Run ID | 作者 | 问题 | 语言 | 测评结果 | Time | Memory | 代码长度 | 提交时间 |
|---|---|---|---|---|---|---|---|---|
| 129439 | 常钰杰 | 判断素数 | C++ | Wrong Answer | 1 MS | 268 KB | 281 | 2025-08-25 15:49:13 |
#include <bits/stdc++.h> using namespace std; int main() { int n; cin>>n; bool flag=true; for(int i=2; i<=n-1; i++) { if(n%i==0) { flag=false; break; } } if(flag==true) { cout<<"yes"; } else { cout<<"no"; } return 0; }
------Input------
318932943
------Answer-----
No
------Your output-----
no