News for hackers. Stuff that matters.
Re:Yet Another Language Speed Test – Counting Primes by deegu on Saturday July 04, 2015 @04:02AM (#9829599)
if you run it with luajit -jv primes.lua you'll see NYIs about math.mod not implemented.

Replacing math.mod(n, i) with (n % i) gives roughly 9.4x performance.

EDIT: luajit version was LuaJIT 2.0.4 on Mac OSX

Re:Yet Another Language Speed Test – Counting Primes by ryanmk on Saturday July 04, 2015 @01:30PM (#9830836)
Thanks, using % did the trick.