Run ID 作者 问题 语言 测评结果 Time Memory 代码长度 提交时间
98478 曹锦择 14判断素数III C++ Wrong Answer 1 MS 268 KB 301 2024-11-23 09:27:48

Tests(0/10):


Code:

#include<bits/stdc++.h> using namespace std; int main(){ int i,a; cin>>a; bool flag; flag=true; for( i=2;i<a;i++){ if(a%i==0){ flag=false; break; } } if(flag==true) cout<<"是素数"<<endl; else cout<<"不是素数"<<endl; return 0; }


Run Info:

------Input------
991
------Answer-----
YES
------Your output-----
是素数