primegen

Fast C/C++ prime number generator library

bacaro: haikuports also on HaikuPorts
Also on HaikuPorts. primegen

Description

primegen is a small, fast library to generate prime numbers in order. It generates the 50847534 primes up to 1000000000 in just 8 seconds on a Pentium II-350; it prints them in decimal in just 35 seconds. primegen can generate primes up to 1000000000000000, although it is not optimized for primes past 32 bits. It uses the Sieve of Atkin instead of the traditional Sieve of Eratosthenes.

Install

Channel stable v0.97-3

This app is curated in HaikuPorts. Install it from there, it is already available in HaikuDepot.

pkgman install primegen

Download version 0.97-3 (x86_64) hpkg

Careful: the file comes from HaikuPorts' own server, but installing it by hand is not the way in. It is pkgman that resolves the dependencies an .hpkg does not carry with it, and a package installed on its own may simply not run. Use the pkgman command above, unless you know exactly why you want the file.

Reviews