Run ID 作者 问题 语言 测评结果 Time Memory 代码长度 提交时间
1813 莫业祁 判断质数(使用while循环) C++ Wrong Answer 0 MS 256 KB 234 2023-11-11 17:50:07

Tests(4/10):


Code:

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


Run Info:

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