FACTOR(1,C) AIX Commands Reference FACTOR(1,C)
-------------------------------------------------------------------------------
factor
PURPOSE
Factors a number.
SYNTAX
+----------+
factor ---| |---|
+- number -+
DESCRIPTION
When called without an argument, the factor command waits for you to enter a
positive number less than 1016. It then writes the prime factors of that
number to standard output. It displays each factor the proper number of times.
To exit, enter a 0 or any non-numeric character.
When called with an argument, the factor command determines the prime factors
of number, writes the results to standard output, and exits.
EXAMPLE
To calculate the prime factors of "123":
factor 123
This displays:
123
3
41
Processed November 8, 1990 FACTOR(1,C) 1