L先生与质数V4
原题:L先生与质数V4
原题大意L先生想求出第n个质数(素数)是多少,你能帮助他吗?
算法分析Meisell-Lehmer算法求素数
http://blog.csdn.net/nemaleswang/article/details/52582684
程序代码#include <bits/stdtr1c++.h>
#define MAXN 100
#define MAXM 10001
#define MAXP 40000
#define MAX 400000
#define clr(ar) memset(ar, 0, sizeof(ar))
#define read() freopen("lol.txt", "r", stdin)
#define dbg(x) cout << #x << " = " << x << endl
#define chkbit(ar, i) (((ar[(i) >> 6]) & (1 << (((i) &
...