文件名称:超快素数筛法程序
文件大小:55KB
文件格式:ZIP
更新时间:2017-02-12 07:36:52
素数 高性能
64位整数内素数筛法世界最快,如果有更快全面超越我的,请通知我领取500RMB奖励。 MINGW: gcc 4.7.3 CXXFLAG:g++ -march=native [-DW210,-DSAFE=1] -funroll-loops -O3 -s -pipe; Windows 7 x64, AMD X4 641 2.8G / Intel i3 350M 2.26G pi(1e11, 1e11+1e10) = 394050419 4.54 / 5.25 pi(1e12, 1e12+1e10) = 361840208 5.56 / 6.31 pi(1e13, 1e13+1e10) = 334067230 7.03 / 7.66 pi(1e14, 1e14+1e10) = 310208140 8.74 / 9.49 pi(1e15, 1e15+1e10) = 289531946 10.42/11.41 pi(1e16, 1e16+1e10) = 271425366 12.15/13.35 pi(1e17, 1e17+1e10) = 255481287 14.28/15.58 pi(1e18, 1e18+1e10) = 241272176 17.50/18.95 pi(1e19, 1e19+1e10) = 228568014 24.20/25.60 pi(1e18, 1e18+1e6) = 24280 1.16/0.72 pi(1e18, 1e18+1e8) = 2414886 1.80/1.54 pi(1e18, 1e18+1e9) = 24217085 3.81/3.80 pi(1e18, 1e18+1e12)= 24127637783 1546/1640 pi(1e16, 1e16+1e12)= 27143405794 1166/1310 pi(1e14, 1e14+1e12)= 31016203073 880 /
【文件预览】:
PrimeNumber_X86.exe
PrimeNumber_X64.exe