| Run ID | 作者 | 问题 | 语言 | 测评结果 | Time | Memory | 代码长度 | 提交时间 |
|---|---|---|---|---|---|---|---|---|
| 137563 | Kevin | 判断素数 | C++ | Accepted | 608 MS | 272 KB | 286 | 2025-11-19 19:43:52 |
#include<bits/stdc++.h> using namespace std; bool ss(int n){ if(n==1) return false; else{ for(int i=2;i<n-1;i++){ if(n%i==0){ return false; } } return true; } } int main() { int n; cin>>n; if(ss(n)) cout<<"Yes"; else cout<<"No"; return 0; }