PRIMES(6) NetBSD Games Manual PRIMES(6)NAMEprimes-- generate primesSYNOPSISprimes[-dh] [start[stop]]DESCRIPTIONTheprimesutility prints primes in ascending order, one per line, start- ing at or abovestartand continuing until, but not includingstop. Thestartvalue must be at least 0 and not greater thanstop. Thestopvalue must not be greater than 3825123056546413050. The default value ofstopis 3825123056546413050. When theprimesutility is invoked with no arguments,startis read from standard input andstopis taken to be 3825123056546413050. Thestartvalue may be preceded by a single `+'. Thestartvalue is terminated by a non-digit character (such as a newline). The input line must not be longer than 255 characters. When given the-dargument,primesprints the difference between the cur- rent and the previous prime. When given the-hargument,primesprints the prime numbers in hexadeci- mal.DIAGNOSTICSOut of range or invalid input results in an appropriate error message to standard error.AUTHORSOriginally by Landon Curt Noll, extended to some 64-bit primes by Colin Percival.CAVEATSThisprimesprogram won't get you a world record. 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. NetBSD 8.0 February 3, 2008 NetBSD 8.0

You can also request any man page by name and (optionally) by section: |

©1996-2017 Modified for NetBSD by Kimmo Suominen