summaryrefslogtreecommitdiff
path: root/test/sieve.lua
diff options
context:
space:
mode:
Diffstat (limited to 'test/sieve.lua')
-rw-r--r--test/sieve.lua2
1 files changed, 1 insertions, 1 deletions
diff --git a/test/sieve.lua b/test/sieve.lua
index 0871bb21..e27c1a20 100644
--- a/test/sieve.lua
+++ b/test/sieve.lua
@@ -14,7 +14,7 @@ function filter (p, g)
while 1 do
local n = g()
if n == nil then return end
- if math.mod(n, p) ~= 0 then coroutine.yield(n) end
+ if n % p ~= 0 then coroutine.yield(n) end
end
end)
end