GNU.WIKI: The GNU/Linux Knowledge Base

  [HOME] [PHP Manual] [HowTo] [ABS] [MAN1] [MAN2] [MAN3] [MAN4] [MAN5] [MAN6] [MAN7] [MAN8] [MAN9]

  [0-9] [Aa] [Bb] [Cc] [Dd] [Ee] [Ff] [Gg] [Hh] [Ii] [Jj] [Kk] [Ll] [Mm] [Nn] [Oo] [Pp] [Qq] [Rr] [Ss] [Tt] [Uu] [Vv] [Ww] [Xx] [Yy] [Zz]


NAME

     primes — generate primes

SYNOPSIS

     primes [-d] [start [stop]]

DESCRIPTION

     The primes utility prints primes in ascending order, one per line,
     starting at or above start and continuing until, but not including stop.
     The start value must be at least 0 and not greater than stop.  The stop
     value must not be greater than the maximum possible value of unsigned
     integer types on your system (4294967295 for 32-bit systems and
     18446744073709551615 for 64-bit systems).  The default value of stop is
     4294967295 on 32-bit and 18446744073709551615 on 64-bit.

     When the primes utility is invoked with no arguments, start is read from
     standard input.  stop is taken to be 4294967295 on 32-bit and
     18446744073709551615 on 64-bit.  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.

DIAGNOSTICS

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

BUGS

     primes won't get you a world record.



  All copyrights belong to their respective owners. Other content (c) 2014-2017, GNU.WIKI. Please report site errors to webmaster@gnu.wiki.
Page load time: 0.107 seconds. Last modified: November 09 2017 18:38:06.