| Run ID | 作者 | 问题 | 语言 | 测评结果 | Time | Memory | 代码长度 | 提交时间 |
|---|---|---|---|---|---|---|---|---|
| 138837 | 张文浩 | 判断质数(使用while循环) | C++ | Wrong Answer | 0 MS | 280 KB | 220 | 2025-11-30 11:25:44 |
#include<bits/stdc++.h> using namespace std; int main(){ bool s=1; int i,n=2; cin>>i; while(n>i){ if(i%n==0){ s=0; } } if(s==1){ cout<<"Yes"; }else{ cout<<"No"; } return 0; }
------Input------
560
------Answer-----
No
------Your output-----
Yes