View | Details | Raw Unified
Collapse All | Expand All

(-) test/sieve.lua~ (-1 / +1 lines)
 Lines 14-20    Link Here 
    while 1 do
    while 1 do
      local n = g()
      local n = g()
      if n == nil then return end
      if n == nil then return end
      if math.mod(n, p) ~= 0 then coroutine.yield(n) end
      if math.fmod(n, p) ~= 0 then coroutine.yield(n) end
    end
    end
  end)
  end)
end
end