| Run ID | Author | Problem | Lang | Verdict | Score | Time | Memory | Code Length | Submit Time |
|---|---|---|---|---|---|---|---|---|---|
| 12223 | 罗炜翰 | 纯粹素数 | C++ | Compile Error | 0 | 0 MS | 0 KB | 337 | 2025-07-08 16:47: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; while(i){ if(!(a(i)){ return 0; } } return 1; } int main() { for(int i=1;i<=3000;i++){ if(w(i)) { cout<<i<<endl; } } return 0; }