Run ID | 作者 | 问题 | 语言 | 测评结果 | Time | Memory | 代码长度 | 提交时间 |
---|---|---|---|---|---|---|---|---|
90237 | 张永良 | 素数判断 | C++ | Wrong Answer | 0 MS | 268 KB | 250 | 2024-09-08 13:13:44 |
#include<bits/stdc++.h> using namespace std; int main(){ int a,f=0; cin>>a; for(int i=2;i<a;i++){ if(a%i==0){ f=1; } } if(f=0){ cout<<"prime"; }else cout<<"not prime"; return 0; }
------Input------
9973
------Answer-----
prime
------Your output-----
not prime