PrimeFactorString

Top  Previous  Next

primefactorstring(a, separate(optional))

 

Returns a string listing the prime factors of a.

 

primefactorstring(75) = 3*5^2

 

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

 

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