factor(1) CLIX factor(1)
NAME
factor - Obtains prime factors of a number
SYNOPSIS
factor [integer]
DESCRIPTION
The factor command obtains the prime factors of an integer. When you use
factor without an argument, it waits for you to give it an integer. After
you give it a positive integer less than or equal to 10^14, it factors the
integer, displays its prime factors the proper number of times, and then
waits for another integer. The factor command exits if it encounters a
zero or any non-numeric character.
If you invoke factor with an argument, it factors the integer as described
above, and then it exits.
The maximum time to factor an integer is proportional to factor will take
this time when n is prime or the square of a prime.
EXAMPLES
To display the prime factors of the number 12, enter the following:
factor 12
DIAGNOSTICS
factor displays the error message, ``Ouch!'' for input out of range or for
garbage input.
EXIT VALUES
Exit values are not valid.
2/94 - Intergraph Corporation 1