BSD Ports

math/primegen 0.97_1 DragonFly

Small, fast library to generate prime numbers in order

System
DragonFly
Repository
DPorts
Maintainer
[email protected] (as in FreeBSD)
Categories
math
Package size
10.9 KiB, 49.1 KiB installed

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.

In the other systems

SystemPortVersion
DragonFlymath/primegen0.97_1
FreeBSDmath/primegen0.97_1

Install

Binary package:

pkg install primegen

From DPorts:

cd /usr/dports/math/primegen && make install clean

Dependencies

No port depends on this one.

Configuration

No options to configure.

Service scripts
none

Message after installing

===>   NOTICE:

The primegen port currently does not have a maintainer. As a result, it is
more likely to have unresolved issues, not be up-to-date, or even be removed in
the future. To volunteer to maintain this port, please create an issue at:

https://bugs.freebsd.org/bugzilla

More information about port maintainership is available at:

https://docs.freebsd.org/en/articles/contributing/#ports-contributing