Run ID 作者 问题 语言 测评结果 Time Memory 代码长度 提交时间
117903 王晏林 13判断质数 C++ Accepted 1 MS 272 KB 269 2025-04-20 18:08:51

Tests(10/10):


Code:

#include<iostream> using namespace std; int main(){ int n,i; bool flag=true; cin>>n; for(i=2;i<n;i++) { if(n%i==0){flag=false;break;} } if(flag) cout<<"Yes"<<endl; else cout<<"No"<<endl; return 0; }