Help with handwritten advanced number system

the human will feel that they have accomplished something

1 Like

he will feel also that he wasted his time to smt that can be done in a lot less time / can be automatically done

β€Žβ€Žβ€Žβ€Žβ€Žβ€Žβ€Žβ€Žβ€Žβ€Žβ€Žβ€Žβ€Žβ€Žβ€Žβ€Žβ€Žβ€Žβ€Žβ€Žβ€Žβ€Žβ€Žβ€Žβ€Žβ€Žβ€Žβ€Žβ€Žβ€Žβ€Žβ€Žβ€Žβ€Žβ€Žβ€Žβ€Žβ€Žβ€Žβ€Žβ€Žβ€Žβ€Žβ€Žβ€Žβ€Ž

1 Like
function CheckEvenOrOdd(x: Number?)
 local val = math.mod(x, 2)
 if val == 1 then
  ifUnEven
 elseif val == 0 then
  ifEven
end

Just use the modulus operator :slight_smile:

function isEven(n)
  local count = 0
  -- We have to make sure this algorithm runs in O(n) time, since 
  -- O(n) is the best run time possible!
  for i = 1, n do
    count = count + 1
  end
  return not ((count / 2) % 1 == 1/2)
end

/s

Why are you even doing this by the way?

Even better:

function IsEven(Number)return Number%2==0;end

Yes, I made it in 1 line, and 45 characters total

1 Like

I made a very complex AI system that will be able to speed up your workflow - and it knows to not use the pesky % symbol! Thank me later:

-- Β© 2024 Very Complex AI Systemsβ„’ Inc. All rights reserved.

-- m is minimum, n is maximum. you can go as far as you want by adjusting n, and pick up where you left off with m.

local text = ""
for i = m, n do
text = text .. "elseif number == " .. i .. "then"
if AIThinksNumberIsEven(number) then
text = text .. ifEven
else
text = text .. ifUnEven

(I made the very complex AI with my phone, that’s why it doesn’t have the " " things)

How far will this handwritten advanced number system go, I wonder?

And how long will people keep taking the bait?

100th like, must say I do love this system and I will be using it for every game in the future

2 Likes

can we let this thread shrivel up and die already

5 Likes

its amazing seeing people respond every so often

@LotoNika posted this beauty and disappeared, wonder if they’re still typing more lines into their handwritten advanced number system

1 Like

me very close to 1 billion, give me time, thanks :slight_smile:

6 Likes

Bro that would take like 95 years (according to chatgpt) Edit: if u worked 24 hours a day
Why are you trolling us bro…

>according to chatgpt
>Why are you trolling
bait used to be believable

1 Like

~260 years


Oh yeah and that assumes you are coding it the 24 hours of the day, non-stop

oof! so even working 24 hours of the day costs a life time

1 Like

You know, she could be creating an automated tool for it.

All you have to do is repeat the same line of code while incrementing, so why do it all yourself when you can create an algorithm that prints it for you!

Technically u also have to add support for decimals, and thats impossible since there are like inf amount

No?

You don’t have to technically add support for anything, it could be a bonus but if it’s not designed to work with decimals then so be it.

1 Like