| Run ID | 作者 | 问题 | 语言 | 测评结果 | Time | Memory | 代码长度 | 提交时间 |
|---|---|---|---|---|---|---|---|---|
| 149641 | 卢语宸 | 判断质数(使用while循环) | C++ | Wrong Answer | 1 MS | 272 KB | 230 | 2026-03-15 14:12:08 |
#include<bits/stdc++.h> using namespace std; int main() { int a,b=2; cin>>a; while(true) { if(a%b!=0) { cout<<"Yes"; break; } if(a%b==0) { cout<<"No"; break; } b++; } return 0; }
------Input------
551
------Answer-----
No
------Your output-----
Yes