2 lines
161 B
Text
2 lines
161 B
Text
supscript[x_,y_]:=If[y==1,x,Superscript[x,y]]
|
|
ShowPrimeDecomposition[input_Integer]:=Print@@{input," = ",Sequence@@Riffle[supscript@@@FactorInteger[input]," "]}
|