| Run ID | 作者 | 问题 | 语言 | 测评结果 | Time | Memory | 代码长度 | 提交时间 |
|---|---|---|---|---|---|---|---|---|
| 84339 | 石晋骁 | 判断素数 | C++ | Wrong Answer | 0 MS | 268 KB | 243 | 2024-07-15 16:40:05 |
#include<bits/stdc++.h> using namespace std; int main(){ int n; cin >> n; for(int i = 1;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