| Run ID | 作者 | 问题 | 语言 | 测评结果 | Time | Memory | 代码长度 | 提交时间 |
|---|---|---|---|---|---|---|---|---|
| 75703 | 陈昊然 | 13判断质数 | C++ | Accepted | 1 MS | 280 KB | 220 | 2024-05-28 19:16:24 |
#include <bits/stdc++.h> using namespace std; int main (){ int a,e=1; cin>>a; for(int i=2;i<=a-1;i++){ if (a%i==0){ e=0; } } if(e==0){ cout<<"No"; }else{ cout<<"Yes"; } return 0; }