Provided by: 9base_6-5_amd64

**NAME**

factor, primes - factor a number, generate large primes

**SYNOPSIS**

factor[number]primes[start[finish] ]

**DESCRIPTION**

Factorprintsnumberand its prime factors, each repeated the proper number of times. The number must be positive and less than 2**54 (about 1.8e16) If nonumberis given,factorreads a stream of numbers from the standard input and factors them. It exits on any input not a positive integer. Maximum running time is proportional to sqrt(n).Primesprints the prime numbers ranging fromstarttofinish, wherestartandfinishare positive numbers less than 2**56. Iffinishis missing,primesprints without end; ifstartis missing, it reads the starting number from the standard input.

**SOURCE**

/src/cmd/factor.c/src/cmd/primes.cFACTOR(1)