printfactors(vector(n1 [n2, ...,]), integers n1 > 0, n2 > 0, ... |

printfactors(vector(n), where n > 0 is an integer prints n and its prime factors, if any. It does not return any values. printfactors(N), where N = vector(n1,n2,...), integers n1 > 0, n2 > 0, ..., prints each element of N together with its prime factors, if any. Example: Cmd> printfactors(2^2^run(5) + 1) 5 is prime 17 is prime 257 is prime 65537 is prime 4294967297 = 641*6700417 See also factors() and primefactors().

Gary Oehlert 2003-01-15