Linux & Unix Commands - Search Man Pages

Select Section of Man Page:

Select Man Page Repository:

factor(1) User Commands factor(1)NAMEfactor - obtain the prime factors of a numberSYNOPSISfactor [integer]DESCRIPTIONfactor writes to standard input all prime factors for any positive integer less than or equal to 10^14. The prime factors are written the proper number of times. If factor is used without an argument, it waits for an integer to be entered. After entry of the integer, it factors it, writes its prime factors the proper number of times, and then waits for another integer. factor exits if a 0 or any non-numeric character is entered. If factor is invoked with an argument (integer), it writes the integer, factors it and writes all the prime factors as described above, and then exits. If the argument is 0 or non-numeric, factor writes a 0 and then exits. The maximum time to factor an integer is proportional to sqrt(n), where n is the integer which is entered. factor will take this time when n is prime or the square of a prime.OPERANDSinteger Any positive integer less than or equal to 10^14.EXIT STATUS0 Successful completion. 1 An error occurred.DIAGNOSTICSfactor prints the error message Ouch! for input out of range or for garbage input.ATTRIBUTESSee attributes(5) for descriptions of the following attributes: +-----------------------------+-----------------------------+ | ATTRIBUTE TYPE | ATTRIBUTE VALUE | +-----------------------------+-----------------------------+ |Availability |SUNWesu | +-----------------------------+-----------------------------+SEE ALSOattributes(5)SunOS 5.1131 Jan 1996 factor(1)

All times are GMT -4. The time now is 02:48 PM.