1PRIMES(6)                      BSD Games Manual                      PRIMES(6)
2

NAME

4     primes — generate primes
5

SYNOPSIS

7     primes [start [stop]]
8

DESCRIPTION

10     The primes utility prints primes in ascending order, one per line, start‐
11     ing at or above start and continuing until, but not including stop.  The
12     start value must be at least 0 and not greater than stop.  The stop value
13     must not be greater than 4294967295.  The default value of stop is
14     4294967295.
15
16     When the primes utility is invoked with no arguments, start is read from
17     standard input.  stop is taken to be 4294967295.  The start value may be
18     preceded by a single ‘+’.  The start value is terminated by a non-digit
19     character (such as a newline).  The input line must not be longer than
20     255 characters.
21

DIAGNOSTICS

23     Out of range or invalid input results in an appropriate error message
24     being written to standard error.
25

BUGS

27     primes won't get you a world record.
28
29BSD                            February 8, 2004                            BSD
Impressum