Skip to content

Commit

Permalink
typo
Browse files Browse the repository at this point in the history
  • Loading branch information
LivInTheLookingGlass committed Sep 11, 2024
1 parent 5c773bf commit 1271e92
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions lua/src/lib/primes.lua
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 1271e92

Please sign in to comment.