个人记录筛质数(埃氏筛法)#include <bits/stdc++.h> using namespace std; int tong[10010]; void f() { tong[1]=1; for(int i=2;i<=10000;i++) { if(tong[i]==0) { for(int j=…