| Run ID | 作者 | 问题 | 语言 | 测评结果 | Time | Memory | 代码长度 | 提交时间 |
|---|---|---|---|---|---|---|---|---|
| 165197 | 丁陆永新 | 判断素数 | C++ | Wrong Answer | 1 MS | 268 KB | 300 | 2026-11-14 10:07:24 |
#include<bits/stdc++.h> using namespace std; bool ss(int x) { if(x==1) return false; for(int i=1;i<=sqrt(x);i++) { if(x%i==0) { return false; } } return true; } int main() { int x; cin>>x; if(ss) { cout<<"Yes"; } else { cout<<"No"; } return 0; }
------Input------
318932943
------Answer-----
No
------Your output-----
Yes