| Run ID | 作者 | 问题 | 语言 | 测评结果 | Time | Memory | 代码长度 | 提交时间 |
|---|---|---|---|---|---|---|---|---|
| 159297 | 王艺博 | 判断质数(使用while循环) | C++ | Wrong Answer | 1 MS | 268 KB | 220 | 2026-08-27 15:45:59 |
#include<bits/stdc++.h> using namespace std; int main(){ int a; cin>>a; int i=2; while(i<a){ if(a%i==0){ cout<<"No"; return 0; } i++; return 0; } cout<<"Yes"; return 0; }
------Input------
157
------Answer-----
Yes
------Your output-----