| Run ID | Author | Problem | Lang | Verdict | Time | Memory | Code Length | Submit Time |
|---|---|---|---|---|---|---|---|---|
| 41035 | Xiyou | 找素数(蓝桥杯2012决赛第1题) | C++ | Time Limit Exceeded | 1000 MS | 224 KB | 324 | 2024-02-18 18:08:51 |
#include<bits/stdc++.h> using namespace std; int main(){ bool f=true; int s=0; for(int i=2;i<=1000000000000;i++){ f=true; for(int j=2;j<=i/2;j++){ if(i%j==0){ f=false; } } if(f==true){ s++; } if(s==100002){ cout<<i; return 0; } } }