From bf6f37f492e8f0429f0227da0292136e97264ea3 Mon Sep 17 00:00:00 2001 From: Olivia Appleton Date: Tue, 17 Sep 2024 22:56:29 -0500 Subject: [PATCH] Fix luacheck --- lua/src/p0003.lua | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) 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