摘要: 数论(1) 1.埃氏筛 素数的n倍一定不是素数,所以就打表,筛选素数。 const int maxn = 1e6+10; bitset<maxn> isprime; void init(int n){ isprime.set();//清空 isprime[0] = isprime[1] = 0; i 阅读全文
posted @ 2021-01-08 13:17 Paranoid5 阅读(90) 评论(0) 推荐(0) 编辑