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
Volume of sphere
hack
Kegs Scores ... FOOOOOOTBALLLLLL
Relative Angles
For your YouTube comment section. (updated)
1
ok
Fibonacci in Lua (Inspired)
help with lua number input
cumulative probability