| Run ID | 作者 | 问题 | 语言 | 测评结果 | Time | Memory | 代码长度 | 提交时间 |
|---|---|---|---|---|---|---|---|---|
| 117319 | 江梵睿 | 14判断素数III | C++ | Wrong Answer | 0 MS | 264 KB | 484 | 2025-04-16 21:53:40 |
#include<iostream> // cin\cout\endl #include<cstdio> //scanf()\printf() #include<cstring> // strcpy()\strcat()\strcmp()\strlen()\memset() #include<cmath> //sqrt()\pow()\abs()\ceil()\floor()\max()\min() using namespace std; int main(){ int i,b,c=0; cin>>b; for(i=2;i<=b-1;i++){ if(b%i==0){ c+=1; break; } } if(c==0){ cout<<"Yes"; } else{ cout<<"No"; } return 0; }
------Input------
991
------Answer-----
YES
------Your output-----
Yes