# FreeBSD Man Pages

home | helpFACTOR(6) FreeBSD Games Manual FACTOR(6)NAMEfactor,primes-- factor a number, generate primesSYNOPSISfactor[-h] [number...]primes[-h] [start[stop]]DESCRIPTIONThefactorutility will factor positive integers. When a number is fac- tored, it is printed, followed by a `:', and the list of factors on a single line. Factors are listed in ascending order, and are preceded by a space. If a factor divides a value more than once, it will be printed more than once. Whenfactoris invoked with one or more arguments, each argument will be factored. Whenfactoris invoked with no arguments,factorreads numbers, one per line, from standard input, until end of file or error. Leading white- space and empty lines are ignored. Numbers may be preceded by a single `+'. Numbers are terminated by a non-digit character (such as a new- line). After a number is read, it is factored. Theprimesutility 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 the maximum. The default and maximum value ofstopis 3825123056546413050. When theprimesutility is invoked with no arguments,startis read from standard input andstopis taken to be the maximum. Thestartvalue may be preceded by a single `+'. Thestartvalue is terminated by a non- digit character (such as a newline).DIAGNOSTICSnegativenumbersaren'tpermittedillegalnumericformatstartvaluemustbelessthanstopvalueResulttoolargeBUGSfactorcannot handle the ``10 most wanted'' factor list,primeswill not get you a world record.primesis unable to list primes between 3825123056546413050 and 18446744073709551615 since it relies on strong pseudoprime tests after sieving, and nobody has proven how many strong pseudoprime tests are required to prove primality for integers larger than 3825123056546413050. FreeBSD 11.0 October 10, 2002 FreeBSD 11.0

NAME | SYNOPSIS | DESCRIPTION | DIAGNOSTICS | BUGS

Want to link to this manual page? Use this URL:

<https://www.freebsd.org/cgi/man.cgi?query=factor&sektion=6&manpath=FreeBSD+11.0-RELEASE+and+Ports>