| Run ID | Author | Problem | Lang | Verdict | Score | Time | Memory | Code Length | Submit Time |
|---|---|---|---|---|---|---|---|---|---|
| 12226 | 罗炜翰 | 纯粹素数 | C++ | Wrong Answer | 0 | 3 MS | 256 KB | 351 | 2025-07-08 16:51:24 |
#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; while(i){ if(!(a(i))){ return 0; } i/=10; } return 1; } int main() { for(int i=1000;i<=3000;i++){ if(w(i)) { cout<<i<<endl; } } return 0; }