| Run ID | 作者 | 问题 | 语言 | 测评结果 | Time | Memory | 代码长度 | 提交时间 |
|---|---|---|---|---|---|---|---|---|
| 83490 | 刘珩宇 | 判断质数(使用while循环) | C++ | Time Limit Exceeded | 1000 MS | 268 KB | 162 | 2024-07-14 15:17:10 |
# include<iostream> using namespace std; int main(){ int i=2,n; cin>>n; while(i<=n/2){ if(n%i==0){ cout<<"No"; return 0; } } cout<<"Yes"; return 0; }