| Run ID | Author | Problem | Lang | Verdict | Score | Time | Memory | Code Length | Submit Time |
|---|---|---|---|---|---|---|---|---|---|
| 151031 | 韩立鹏 | 判断质数 | C++ | Accepted | 100 | 0 MS | 252 KB | 223 | 2024-06-11 13:05:08 |
#include<bits/stdc++.h> using namespace std; int main(){ int num,a=0; cin>>num; for(int i=2;i<=num-1;i++){ if(num%i==0){ a++; } } if(a==0){ cout<<"Yes"; } else{ cout<<"No"; } return 0; }