Run ID 作者 问题 语言 测评结果 Time Memory 代码长度 提交时间
4767 郑元泰 判断质数(使用while循环) C++ Accepted 0 MS 260 KB 214 2024-09-15 15:02:59

Tests(10/10):


Code:

#include<iostream> using namespace std; int main(){ int n; cin>>n; int i=2; while(n%i!=0){ i++; } if(i==n) cout<<"Yes"<<endl; else cout<<"No"<<endl; return 0; }