Run ID | 作者 | 问题 | 语言 | 测评结果 | Time | Memory | 代码长度 | 提交时间 |
---|---|---|---|---|---|---|---|---|
94507 | zzh120788 | 14判断素数III | C++ | Wrong Answer | 1 MS | 272 KB | 236 | 2024-10-22 21:30:06 |
#include<bits/stdc++.h> #include<iostream> using namespace std; int main(){ int n,f1=0,i2=0; cin >> n; for(i2=1;i2 <= 100000;i2=i2+1){ if(n%i2==0) f1=f1+1; } if(f1==2) cout <<"yes"; else cout << "no"; return 0; }
------Input------
991
------Answer-----
YES
------Your output-----
yes