| Run ID | 作者 | 问题 | 语言 | 测评结果 | Time | Memory | 代码长度 | 提交时间 |
|---|---|---|---|---|---|---|---|---|
| 162451 | 李嘉峻 | 13判断质数 | C++ | Accepted | 2 MS | 272 KB | 235 | 2026-10-17 15:22:18 |
#include <bits/stdc++.h> using namespace std; int main () { int n; cin>>n; int y = 0; for(int i =1;i<=n;i++){ if(n%i==0){ y+=1; if(y>=3){ cout<<"No"; return 0; } } } cout<<"Yes"; return 0; }