| Run ID | 作者 | 问题 | 语言 | 测评结果 | Time | Memory | 代码长度 | 提交时间 |
|---|---|---|---|---|---|---|---|---|
| 84334 | 石茂诤 | 判断素数 | C++ | Wrong Answer | 1 MS | 272 KB | 216 | 2024-07-15 16:38:37 |
# include<bits/stdc++.h> # include<cmath> using namespace std; int main (){ int a; cin>>a; for(int i=2;i<=sqrt(a);i++){ if(a%i==0){ cout<<"No"; return 0; } } cout<<"Yes"; return 0; }
------Input------
1
------Answer-----
No
------Your output-----
Yes