factor(1) factor(1)NAME factor - prints the prime factor of a given number SYNOPSIS factor [number] ARGUMENTS number Specifies the number from which factor will print its prime factors. DESCRIPTION factor prints the prime factors of its argument. 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 pow(2,56), 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, where n is the number being factored. It takes 1 minute to factor a prime11near 10 on a 68020.STATUS MESSAGES AND VALUES The message: Ouch is echoed when input is out of range or is garbage. FILES /bin/factor Executable file January 1992 1