Skip to content

Commit

Permalink
Satisfy linter
Browse files Browse the repository at this point in the history
  • Loading branch information
LivInTheLookingGlass committed Sep 11, 2024
1 parent fb688a1 commit dc58cf5
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion lua/src/lib/primes.lua
Original file line number Diff line number Diff line change
@@ -1,9 +1,14 @@
local function primes(stop)
local prime = 1
local candidate
local candidate = 2
local sieve = {}

local function next()
if stop ~= nil and candidate > stop
then
return nil
end

while true
do
candidate = prime + 1
Expand Down

0 comments on commit dc58cf5

Please sign in to comment.