Run Code
|
API
|
Code Wall
|
Misc
|
Feedback
|
Login
|
Theme
|
Privacy
|
Patreon
Find primes until e
local found = {} local e = 100000 -- ONLY EDIT THIS local function checkIfEven(num) if (num % 2)==0 then return true else return false end end local function isPrime(n) for i=2, n^(1/2) do if (n%i) == 0 then return false end end return true end for i=1, e do if isPrime(i) then table.insert(found,i) end end str = "0" for i,v in ipairs(found) do str = str .. ", " .. v end print(str)
run
|
edit
|
history
|
help
0
Random number generation with ranges (Lua)
RSA KEY GENERATOR (LUA)
test random skill id
Volume of sphere
PAID HACK PuBG
dd
Monty Hall
Key
Creating habits. Lua
10 Line challenge