FactorInteger
FactorInteger[n]
factors the integer n
.
Attributes[FactorInteger] := {Listable, Protected}
Simple examples
In[1]:= FactorInteger[8] Out[1]= {{2, 3}}
In[2]:= FactorInteger[Rational[-15, 2]] Out[2]= {{-1, 1}, {2, -1}, {3, 1}, {5, 1}}