Run Code
|
API
|
Code Wall
|
Users
|
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
Please
log in
to post a comment.
Kegs Scores ... FOOOOOOTBALLLLLL
Truly random numbers (Lua)
personal use
Random numbers in Lua. Range: 1-49. Sets of numbers without duplicates
ShSlotMachine_Data
Newton-Raphson method for the square root
Security keygen
sh
Relative Angles
Hand positions in a circle
Please log in to post a comment.