local function isEven(number)
return bit32.band(number, 1) == 0
end
An easy fix to this is to create this script. It is extremely simple and is much more optimized than what you have.
local number = 4
local my_table = {1 = "odd", 2 = "even", 3 = "odd", 4 = "even" --[[etc.]]}
local is_it_even_or_odd = nil
for i = 1, 1e5000000000000 do
if number == i then
is_it_even_or_odd = my_table[i]
end
if i == 593898123 then
print("screw this number for no reason. no number works beyond this point")
break
end
end
Apologies for my last reply, misclicked.
I will be ignoring large optimization problems as those have been already addressed but
this script does not run. Here is how to fix it.
Change this
local ifEven = print("Even")
local ifUnEven = print("Uneven")
to this
function ifEven()
print("Even")
end
function ifUnEven()
print("UnEven")
end
or (preferably) just do
function Result(result)
if result then
print("Even")
else
print("Odd")
end
end
Then change how you call the function from
ifEven
to(if using first method)
ifEven()
to(if using second method)
Result(false)
if odd, or
Result(true)
if even.
Just released 500 MILLION version
I am half way with creating the 1 billion version, so me sharing the 500 million version here:
https://www.swisstransfer.com/d/c750aea7-c5b9-4ecb-a20b-52c0673cb344
(Again every platform hates me so they don’t let me upload my hard work so I had to find new one.)
Replying to people
Thanks for telling me, I’ve fixed it, I’m so happy!
I don’t understand.
True
You welcome
What?
Yes
This category isn’t made for jokes. Come on now, you didn’t write down two million lines of code, that’s ridiculous. I was trying to help people and I came across this post.
can we just let this post die already damn
Is this is a troll post? Fillertext
honestly i cannot tell
there are so many possibilites
this is either;
- ragebait
- genuine post made by a clueless coder
- troll post made by a troll coder
If it’s rage bait, it workedfiller text
idk i’m having a good laugh out of this
this post is so stupid and it triggers some people so it’s funny
it’s time to let this post die tho
I don’t think he/she can go further to be honest, if the current file is 22GB I see absolutely no chance that it can even go for even longer.
It’s at least a record of lines
Btw the record is 26,000,000 lines of code
Hi, I am currently in need of such system, however, I only have a few kilobytes left on my PC and am therefore unable to download the file you have provided. Would it be possible for you to upload the raw text on a text sharing site such as Pastebin for example, so that I can use it via loadstring()?
One more question, are there any plans to make it compatible with negative numbers and decimals? If so, what would be the estimated release date?
Thank you.
I cannot believe I am alive to witness such groundbreaking methods. I could never comprehend creating something as spectacular and marvelous as this.
If this file has 500 million elseif
statements it has to have over a billion lines already, woah.
Yandere Simulator source code leak right here .
I don’t understand, it’s some game as me see but what does it have to my number system?
Nah nah reply of the year right here lol
I no understand, it’s some game but what it has to do with system i made?