PRIMES(6) | Games Manual | PRIMES(6) |
primes | [-dh] [start [stop]] |
When the primes utility is invoked with no arguments, start is read from standard input and stop is taken to be 3825123056546413050. The start value may be preceded by a single ‘+’. The start value is terminated by a non-digit character (such as a newline). The input line must not be longer than 255 characters.
When given the -d argument, primes prints the difference between the current and the previous prime.
When given the -h argument, primes prints the prime numbers in hexadecimal.
The program is not able to list primes between 3825123056546413050 and 18446744073709551615 (2^64 - 1) as it relies on strong pseudoprime tests after sieving, and it is yet unknown how many of those tests are needed to prove primality for integers larger than 3825123056546413050.
February 3, 2008 | NetBSD 7.0 |