Run ID | 作者 | 问题 | 语言 | 测评结果 | Time | Memory | 代码长度 | 提交时间 |
---|---|---|---|---|---|---|---|---|
4650 | fs_5028 | 13判断质数 | C++ | Wrong Answer | 0 MS | 256 KB | 215 | 2024-08-26 18:31:34 |
#include<iostream> using namespace std; int main(){ int a,b=0; cin>>a; for(int i=2;i<=a-1;i++){ if(a%i!=0){ b+=1; } } if(b==0){ cout<<"Yes"; } else{ cout<<"No"; } return 0; }
------Input------
313
------Answer-----
Yes
------Your output-----
No