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