- 博客(1)
- 收藏
- 关注
原创 Sieve of Eratosthenes
用Eratosthenes算法来筛选素数(例子为100以内的所有素数) #include #include "iostream" #include "math.h" using namespace std; #define MAX 100 int main() { int i,j,c=0; int prime[MAX+1];
2016-10-24 21:26:39
384
空空如也
空空如也
TA创建的收藏夹 TA关注的收藏夹
TA关注的人
RSS订阅