RosettaCodeData/Task/Prime-decomposition/Lingo/prime-decomposition-2.lingo
2016-12-05 23:44:36 +01:00

11 lines
226 B
Text

put getPrimeFactors(12)
-- [2.0000, 2.0000, 3.0000]
-- print floats without fractional digits
the floatPrecision=0
put getPrimeFactors(12)
-- [2, 2, 3]
put getPrimeFactors(1125899906842623.0)
-- [3, 251, 601, 4051, 614141]