| Run ID | 作者 | 问题 | 语言 | 测评结果 | Time | Memory | 代码长度 | 提交时间 |
|---|---|---|---|---|---|---|---|---|
| 74515 | 陈杨锦鸿 | 素数判断 | C++ | Wrong Answer | 0 MS | 272 KB | 217 | 2024-05-25 14:41:31 |
#include<iostream> using namespace std; int main() { int a,b=0; cin>>a; for(int i=1;i>=10000;i++){ if(a%i==0){ b++; } } if(b==2){ cout<<"prime"; } else{ cout<<"not prime"; } }
------Input------
9973
------Answer-----
prime
------Your output-----
not prime