Optimized sieve of Eratosthenes implementation. #Eratosthenes function #Sieve of Eratosthenes #Calculate k-tuplet #Calculate #Function #Eratosthenes
Primesieve is an educational app dedicated to math scientists and students.
Primesieve comes accompanied by a C++ library that uses a highly optimized implementation of the sieve of Eratosthenes. The main aim of the assembly is to generate prime numbers and prime k-tuplets (twin primes, prime triplets, etc.).
Primesieve uses the segmented sieve of Eratosthenes with wheel factorization also known as Pritchard's segmented wheel sieve. The algorithm has a complexity of O(n) operations and is using O(sqrt(n)) bits of memory.
In 2002 Tomas Oliveira e Silva made an improvement to the segmented sieve of Eratosthenes using linked lists allowing use of segments smaller than sqrt(n) without deteriorating efficiency.
This is important as only small segments that fit into the CPU's L1 or L2 cache provide fast memory access.
Although a few other prime number sieves are known now that are slightly more efficient and use O(n/log log n) operations the segmented wheel sieve (with linked lists) has been the fastest prime number sieve since its discovery in 1981.
Primesieve is cross-platform and it works on Mac OS X, Windows and Linux. Binaries for the Windows and Linux platforms are available on the project's homepage.
What's new in Primesieve 5.5:
- This release contains many small incremental improvements. There are 2 minor backwards incompatible API changes which are described further down:
- primesieve GUI app: Runtime detection of CPU L1 cache size.
- primesieve.pc.in: Added support for pkg-config.
- appveyor.yml: Automated Windows (MSVC++) testing.
Primesieve 5.5
add to watchlist add to download basket send us an update REPORT- runs on:
- Mac OS X 10.6 or later (Intel only)
- file size:
- 8.8 MB
- filename:
- primesieve-5.5.0-macosx-x64.zip
- main category:
- Math/Scientific
- developer:
- visit homepage
4k Video Downloader
7-Zip
Microsoft Teams
Zoom Client
Windows Sandbox Launcher
calibre
Bitdefender Antivirus Free
Context Menu Manager
ShareX
IrfanView
- Context Menu Manager
- ShareX
- IrfanView
- 4k Video Downloader
- 7-Zip
- Microsoft Teams
- Zoom Client
- Windows Sandbox Launcher
- calibre
- Bitdefender Antivirus Free