| Run ID | Author | Problem | Lang | Verdict | Score | Time | Memory | Code Length | Submit Time |
|---|---|---|---|---|---|---|---|---|---|
| 12417 | A班-袁誉晏 | 判断质数 | C++ | Runtime Error | 0 | 0 MS | 252 KB | 303 | 2025-07-12 15:11:00 |
#include <bits/stdc++.h> using namespace std; int n(int a) { int flag,sum=0; for(int i=2;i<a;i++) { if(a%i==0) { sum=i; flag=1; break; } } if(flag==1) { cout<<sum; } else { cout<<"Yes"; } } int main() { int b; cin>>b; n(b); return 0; }