Run ID 作者 问题 语言 测评结果 Time Memory 代码长度 提交时间
90800 杜春雨 13判断质数 C++ Accepted 1 MS 268 KB 255 2024-09-16 16:29:28

Tests(10/10):


Code:

#include<bits/stdc++.h> 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; }