| Run ID | 作者 | 问题 | 语言 | 测评结果 | Time | Memory | 代码长度 | 提交时间 |
|---|---|---|---|---|---|---|---|---|
| 75957 | cfx | 素数判断 | C++ | Accepted | 0 MS | 272 KB | 331 | 2024-06-01 11:12:42 |
#include<bits/stdc++.h> using namespace std; int main() { int n,zs=1; cin>>n; int i; for(i=2;i<n;i++) { if(n%i==0) { cout<<"not prime"<<endl; zs=0; break; } } if(zs==1) { cout<<"prime"<<endl; } return 0; }