- 博客(1)
- 收藏
- 关注
原创 查找素数/素数筛法(C++版)
查找从2到N的全部素数 代码如下 #include <bits/stdc++.h> using namespace std; #define maxn 1000000 bool valid[maxn]; void getPrime(int n,int &tot,int ans[maxn]) { //N 要查找素数的范围; //tot 素数数量总和; /...
2018-10-08 00:09:55
5075
1
空空如也
空空如也
TA创建的收藏夹 TA关注的收藏夹
TA关注的人