math/primegen 0.97_1 FreeBSD
Small, fast library to generate prime numbers in order
- System
- FreeBSD
- Repository
- FreeBSD ports
- Maintainer
- [email protected]
- Categories
- math
- Package size
- 13.7 KiB, 64.6 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
| System | Port | Version |
|---|---|---|
| FreeBSD | math/primegen | 0.97_1 |
| DragonFly | math/primegen | 0.97_1 |
Install
Binary package:
pkg install primegen
From the ports tree:
cd /usr/ports/math/primegen/ && make install clean
To depend on this port in another port's Makefile:
RUN_DEPENDS= primegen>0:math/primegen
Packages
The version each package repository carries. “-” means the repository builds no package of it, “n/a” that there is no such repository.
| Repository | aarch64 | amd64 | armv6 | armv7 | i386 |
|---|---|---|---|---|---|
| FreeBSD:14:latest | 0.97_1 | 0.97_1 | 0.97 | 0.97_1 | 0.97_1 |
| FreeBSD:14:quarterly | 0.97_1 | 0.97_1 | n/a | 0.97_1 | 0.97_1 |
| FreeBSD:15:latest | 0.97_1 | 0.97_1 | n/a | 0.97_1 | 0.97_1 |
| FreeBSD:15:quarterly | 0.97_1 | 0.97_1 | n/a | n/a | n/a |
| FreeBSD:16:latest | 0.97_1 | 0.97_1 | n/a | n/a | n/a |
| FreeBSD:16:quarterly | n/a | n/a | n/a | n/a | n/a |
Dependencies
The Makefile names none itself; they come from USES and USE_*.
The full lists below include those, and their dependencies in turn.
Build dependencies 7
No port depends on this one.
Configuration
No options to configure.
- USES
- groff
- Service scripts
- none
Message after installing
Files
distinfo 1
| File | Size | SHA256 |
|---|---|---|
| primegen-0.97.tar.gz | 31491 | 54285baf8eed9e421ff2220a2112d38cfb20c1ebef6014ef3f0004c22c95f40d |
Master sites 1
- http://cr.yp.to/primegen/
Commit history 0
No commits in the history this site was built from.