Skip to content
master
Go to file
Code

Latest commit

 

Git stats

Files

Permalink
Failed to load latest commit information.
Type
Name
Latest commit message
Commit time
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

README.md

#bechmark

g++ -DSIEVE_SIZE=4096 -DFDIV -march=native -funroll-loops -O3 -s -pipe PrimeNumber.cpp -o prime

Windows 10 x64 i3-350M,i5-3470,i7-7500u,i7-6700,r7-1700

  • Pi(0, 1e10) = 455052511 3.10 1.84 1.55 1.32 1.65
  • Pi(1e11, 1e10) = 394050419 4.35 2.50 2.02 1.78 2.00
  • Pi(1e12, 1e10) = 361840208 5.30 3.00 2.40 2.04 2.25
  • Pi(1e13, 1e10) = 334067230 6.52 3.50 2.85 2.39 2.67
  • Pi(1e14, 1e10) = 310208140 7.90 4.20 3.50 2.87 3.20
  • Pi(1e15, 1e10) = 289531946 9.90 5.10 4.32 3.49 3.91
  • Pi(1e16, 1e10) = 271425366 11.7 6.10 5.01 4.12 4.73
  • Pi(1e17, 1e10) = 255481287 13.9 7.09 5.75 4.84 5.63
  • Pi(1e18, 1e10) = 241272176 17.2 8.58 7.00 5.82 6.88
  • Pi(1e19, 1e10) = 228568014 24.0 11.6 9.71 8.00 9.50
  • Pi(0-1e9,10^9) = 22537866 8.15 4.28 3.92 3.02 3.64
  • Pi(1e18, 10^6) = 24280 0.65 0.46 0.34 0.48 0.60
  • Pi(1e18, 10^8) = 2414886 1.30 0.81 0.70 0.60 0.70
  • Pi(1e18, 10^9) = 24217085 3.50 1.80 1.58 1.26 1.50
  • Pi(0, 1e12) = 37607912018 500 270 224 200 220
  • Pi(1e14, 1e12) = 31016203073 790 420 354 295 320
  • Pi(1e16, 1e12) = 27143405794 1160 600 512 420 485
  • Pi(1e18, 1e12) = 24127637783 1500 760 622 520 640
  • Pi(1e19, 1e12) = 22857444126 1700 830 702 600 665

About

fast prime sieve and hash algorithm

Resources

License

Releases

No releases published

Packages

No packages published

Languages

You can’t perform that action at this time.