Run ID 作者 问题 语言 测评结果 Time Memory 代码长度 提交时间
6003 谢锦卓 判断质数(使用while循环) C++ Wrong Answer 0 MS 268 KB 241 2024-12-28 09:27:20

Tests(4/10):


Code:

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


Run Info:

------Input------
313
------Answer-----
Yes
------Your output-----
No