Flashnux

GNU/Linux man pages

Livre :
Expressions régulières,
Syntaxe et mise en oeuvre :

ISBN : 978-2-7460-9712-4
EAN : 9782746097124
(Editions ENI)

Unix

Unix v6

factor(6)



factor discover prime factors of a number When is invoked without an argument, it waits for a number to be typed in. If you type in a positive number less than 2 56 (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 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 is prime or the square of a prime. It takes 1 minute to factor a prime near 10 13 . ‘Ouch.’ for input out of range or for garbage input.



factor(6)