| Run ID | 作者 | 问题 | 语言 | 测评结果 | Time | Memory | 代码长度 | 提交时间 |
|---|---|---|---|---|---|---|---|---|
| 68989 | 邓嘉瑶 | 13判断质数 | C++ | Wrong Answer | 1 MS | 268 KB | 213 | 2024-03-30 10:36:47 |
#include<bits/stdc++.h> using namespace std; int main(){ int n; cin>>n; if(n<2){ cout<<"No" ; } for(int i=2;i<=n-1;i++){ if(n%i==0){ cout<<"No"; } } cout<<"Yes"; return 0; }
------Input------
560
------Answer-----
No
------Your output-----
NoNoNoNoNoNoNoNoNoNoNoNoNoNoNoNoNoNoYes