| Run ID | 作者 | 问题 | 语言 | 测评结果 | 时间 | 内存 | 代码长度 | 提交时间 |
|---|---|---|---|---|---|---|---|---|
| 77455 | sh25_shenpy | 埃氏筛法求区间质数 | C++ | 通过 | 0 MS | 240 KB | 257 | 2025-12-25 22:04:46 |
#include<bits/stdc++.h> using namespace std; int main(){ int n,s=0; cin>>n; for(int i=2;i<=n;++i){ for(int j=2;j<i;++j){ if(i%j==0) ++s; } if(s==0) cout<<i<<" "; s=0; } return 0; }