| Run ID | 作者 | 问题 | 语言 | 测评结果 | Time | Memory | 代码长度 | 提交时间 |
|---|---|---|---|---|---|---|---|---|
| 149184 | 杜雨轩 | 判断质数(使用while循环) | C++ | Accepted | 0 MS | 268 KB | 220 | 2026-03-07 17:17:13 |
#include<iostream> using namespace std; int main() { long long a,b=0; cin>>a; for(int i = 1; i<=a ; i++) { if(a%i==0) { b++; } } if(b<=2) { cout<<"Yes"; }else{ cout<<"No"; } return 0; }