From 1271e9200841bb1505c9538cd95e0a0e898a420d Mon Sep 17 00:00:00 2001 From: Olivia Appleton Date: Tue, 10 Sep 2024 23:48:58 -0500 Subject: [PATCH] typo --- lua/src/lib/primes.lua | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/lua/src/lib/primes.lua b/lua/src/lib/primes.lua index 57642547..d78f092c 100644 --- a/lua/src/lib/primes.lua +++ b/lua/src/lib/primes.lua @@ -11,10 +11,9 @@ local function primes(stop) for _, step in ipairs(steps) do local value = cand + step - local newlist = sieve[value] - if newlist + if sieve[value] then - table.insert(newlist, value) + table.insert(sieve[value], step) else sieve[value] = { step } end