v7 man page for factor

Query: factor

OS: v7

Section: 1

Format: Original Unix Latex Style Formatted with HTML and a Horizontal Scroll Bar

FACTOR(1)						      General Commands Manual							 FACTOR(1)

NAME
factor, primes - factor a number, generate large primes
SYNOPSIS
factor [ number ] primes
DESCRIPTION
When factor is invoked without an argument, it waits for a number to be typed in. If you type in a positive number less than 256 (about 7.2e16) it will factor the number and print its prime factors; each one is printed the proper number of times. Then it waits for another number. It exits if it encounters a zero or any non-numeric character. If factor is invoked with an argument, it factors the number as above and then exits. Maximum time to factor is proportional to sqrt(n) and occurs when n is prime or the square of a prime. It takes 1 minute to factor a prime near 1014 on a PDP11. When primes is invoked, it waits for a number to be typed in. If you type in a positive number less than 256 it will print all primes greater than or equal to this number.
DIAGNOSTICS
`Ouch.' for input out of range or for garbage input. FACTOR(1)
Related Man Pages
primes(1) - hpux
factor(1) - opensolaris
primes(6) - freebsd
prime(1ssl) - suse
prime(1ssl) - plan9
Similar Topics in the Unix Linux Community
Factorize some rows in a column
Factorial of any number using functions
Help on writing data from 2 different files to one based on a common factor
How do I use grep to grab prime number output from my factor program?
Setting Up Google 2F Authentication for Automated (Crontab) rsync