埃氏筛素数法
摘要:从2开始枚举所有数(已知2为素数),筛去每一个素数的倍数,剩下的就都是素数。#include const int maxn = 1001; bool p[maxn] = {false}; int...
阅读全文
posted @ 2018-01-22 11:56
posted @ 2018-01-22 11:56
posted @ 2018-01-22 10:37
posted @ 2018-01-22 10:27
posted @ 2018-01-20 16:02