Run ID 作者 问题 语言 测评结果 Time Memory 代码长度 提交时间
4768 黄言岐 判断质数(使用while循环) C++ Wrong Answer 0 MS 264 KB 218 2024-09-15 15:03:11

Tests(0/10):


Code:

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


Run Info:

------Input------
560
------Answer-----
No
------Your output-----
no