RosettaCodeData/Task/Count-in-factors/Mathematica/count-in-factors.math
2023-07-01 13:44:08 -04:00

4 lines
112 B
Text

n = 2;
While[n < 100,
Print[Row[Riffle[Flatten[Map[Apply[ConstantArray, #] &, FactorInteger[n]]],"*"]]];
n++]