Run ID | 作者 | 问题 | 语言 | 测评结果 | Time | Memory | 代码长度 | 提交时间 |
---|---|---|---|---|---|---|---|---|
97672 | 糜宗易 | 素数判断 | C++ | Wrong Answer | 1 MS | 272 KB | 231 | 2024-11-16 12:05:52 |
#include<bits/stdc++.h> using namespace std; int main(){ int n; cin>>n; for(int i=2 ;i<=n-1;i++){ if(n%i==0){ cout<<"不是质数"<<endl; }else{ cout<<"是质数"<<endl; } break; } return 0; }
------Input------
9973
------Answer-----
prime
------Your output-----
是质数