| Run ID | Author | Problem | Lang | Verdict | Score | Time | Memory | Code Length | Submit Time |
|---|---|---|---|---|---|---|---|---|---|
| 12230 | 罗炜翰 | 纯粹素数 | C++ | Wrong Answer | 0 | 15 MS | 248 KB | 415 | 2025-07-08 16:55:58 |
#include<bits/stdc++.h> using namespace std; int a(int x){ for(int i=2;i<x;i++){ if(x%i==0){ return 0; } } return 1; } int w(int x){ int i=x,sum=1; while(i){ sum*=10; i/=10; } i=x; while(i){ if(!(a(i))){ return 0; } i/=sum; sum/=10; } return 1; } int main() { for(int i=1013;i<=3000;i++){ if(w(i)) { cout<<i<<endl; } } return 0; }