PrimeFactors

Top  Previous  Next

primefactors(a, separate(optional))

 

Returns a string listing the prime factors of a.

 

primefactors(75) = 3*5^2

 

Adding a non-zero second parameter tells the primefactor command to separate out repeated factors instead of using indices.

 

primefactors(75,1) = 3*5*5