RosettaCodeData/Task/Prime-decomposition/Lingo/prime-decomposition-2.lingo
2023-07-01 13:44:08 -04: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]