https://www.cnblogs.com/grubbyskyer/p/3852421.html 博客
欧拉筛:
1 for(int i=2;i<=n;i++) 2 { 3 if(!check[i]) prime[++num]=i; 4 for(int j=1;j<=num;j++) 5 { 6 if(i*prime[j]>n) break; 7 check[i*prime[j]]=1; 8 if(i%prime[j]==0) break; 9 } 10 }