diff --git a/lua/src/p0003.lua b/lua/src/p0003.lua index 3554a240..b85c9518 100644 --- a/lua/src/p0003.lua +++ b/lua/src/p0003.lua @@ -11,8 +11,7 @@ local prime_factors = loadlib("primes").prime_factors return { solution = function() local fgen = prime_factors(600851475143) - local f - local answer = 0 + local f, answer repeat answer = f