11 lines
226 B
Text
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]
|