alt.hn

5/20/2025 at 12:19:44 AM

Is-even-ai – Check if a number is even using the power of AI

https://www.npmjs.com/package/is-even-ai

by modinfo

5/20/2025 at 1:10:14 AM

This package has saved me so many hours of tedious gruntwork. It's like a junior developer - you still have to manually check their work, but when it's correct, it's a great productivity improvement.

And don't forget where this will go in a couple years with improved models and more computing power, it's gonna be awesome!

[/i]

by s1mplicissimus

5/20/2025 at 1:55:42 AM

This exactly. It is more important to move fast. Screw the edge cases. As long as it’s correct _most_ of the time, you can always fix anything that’s broken tomorrow.

by 1k

5/20/2025 at 2:43:39 AM

It's called "eventual consistency".

by pavel_lishin

5/20/2025 at 5:03:53 AM

And C10k was never about those 10.000 socket connections getting the right response, either!

by sho_hn

5/20/2025 at 3:32:23 AM

Why on earth did the software engineering interviews were checking candidates’ ability to think about edge cases? Clearly management does not care.

by whatever1

5/20/2025 at 1:43:18 AM

Developers who aren't using it are already falling behind.

by sho_hn

5/20/2025 at 2:06:15 AM

Remember, it's not that AI that will take your job, it's the developers who need an AI to tell them if a number is even that will take your job.

by SamBam

5/20/2025 at 1:29:23 AM

pro tip: play around with the temperature especially when using big numbers as input

by darepublic

5/20/2025 at 1:36:12 AM

Wow, amazing tip. This hack improved my workflow by 10x.

by hzambo

5/20/2025 at 2:43:48 AM

Only 9x for me. What am I doing wrong? Can you share your vscode colour scheme file?

by Waterluvian

5/20/2025 at 4:05:34 AM

What model were you using? You need to use gpt-3.14-tastesgreat-lessfilling, I've used it to write 130 side hustle projects this month with only prompting.

by floren

5/20/2025 at 9:54:20 PM

Vibe coding your way to greatness. Wish I could do that, but it seems too hard becoming a prompt engineer. Stringing together words? That's why we have AI!

by bigbuppo

5/20/2025 at 1:37:47 AM

Are there actually still Junior Developers out there? I thought no one is hiring Junior Developers.

by koakuma-chan

5/20/2025 at 3:43:15 AM

Its actually the opposite of how people think.

We hire junior devs, but not senior, and dont replace our senior devs. So our developer base is moving towards being junior weighted with less senior. The reason being a junior dev is cheaper, complains less, is more capable now through utilising generative AI, works harder to impress knowing they arent in a safe position, and we can let them go more easily with less process and less reasons needed to be given.

by ArthurStacks

5/20/2025 at 4:27:21 PM

It is legitimately hard to tell if this is a parody account.

by NoGravitas

5/21/2025 at 5:02:43 AM

Thats because youre conditioned in your culture to want the nice lies that tell you other people care by a society that wraps everything in BS.

Foreigners may consider my culture brutal and unforgiving, but at least its honest from the outset

by ArthurStacks

5/20/2025 at 4:49:38 AM

you're so wrong. This only works if what you do is so simple that any junior develper can sufficiently do it well. Senior developers with AI is gonna destroy a bunch of junior developers with AI.

by android521

5/20/2025 at 5:16:25 AM

>You're so wrong, this only works if..

wrong? I'll gladly continue this 'wrong' approach if it continues to be as successful as it has over the last 6 months. Aswell as it being entertaining seeing the level of cope among 'senior' developers watching someone on 1/4th of their salary design systems better than they can

by ArthurStacks

5/20/2025 at 6:00:10 AM

I recognize I’m not going to change your mind on this, but I’ll sure be interested to hear how all those systems are working in a year or two - although from your comments elsewhere, you run a consultancy, so I guess that’s not your problem, either.

by roughly

5/20/2025 at 6:23:06 AM

Many people without experience ask this same question.

It isnt relevant. They arent just producing code and pushing it, saying it works. It undergoes the same extensive testing for stability and security as the solution written by anyone else goes through. If it passes that, then its as likely to have issues further down the line as the solution written solely by the senior dev would have.

by ArthurStacks

5/20/2025 at 5:27:21 AM

Do you plan on promoting them eventually or just replacing them once they realize they’re getting a bad deal?

by superb_dev

5/20/2025 at 5:32:05 AM

Theyre getting paid and have a job. If they dont like that deal they can go find another one elsewhere.

But its going to get increasingly difficult to justify promoting them to higher salaries if generative AI continues as it is, as the bottom line is that there will be another junior dev out there that will do the role on less.

by ArthurStacks

5/21/2025 at 3:14:41 PM

Did the juniors decide it was a better system or the seniors?

by mrits

5/20/2025 at 6:49:48 AM

> 1/4th of their salary

If they + AI are a replacement for senior devs, shouldn't they be paid accordingly?

by Fulgen

5/20/2025 at 7:14:24 AM

That would defeat the purpose. The whole point is to reduce costs by getting a cheap junior dev and having them operate AI to produce the same or better result for far less

by ArthurStacks

5/20/2025 at 7:42:16 AM

So the point is to use technological advancements only to increase company profit and not pass any on to the actual workers. If a junior costs 1/4 of a senior, they could easily paid more from the 3/4s saved (since they're also more valuable now), but I guess shareholder millions come first.

by Fulgen

5/20/2025 at 8:54:15 AM

Of course. I'm running a business, not a welfare program

by ArthurStacks

5/20/2025 at 1:56:06 PM

What a way to summarize the decades of apathy that led to the current state of wealth inequality.

by lcnPylGDnU4H9OF

5/20/2025 at 2:42:17 PM

Apathy? More like the fact that the majority of people are too lazy, not motivated enough, not willing to take risks, and go out and build something of their own that results in wealth, and prefer to sit safe as someones employee, complaining about 'wealth inequality'

by ArthurStacks

5/20/2025 at 4:04:34 PM

It's interesting to watch you put zero value on work/effort/labor and huge value on risk taking (which is very different for people with different "safety nets").

by collingreen

5/20/2025 at 9:08:08 PM

Hey are you hiring? If you are shoot me an email, my address is in my profile. I love operating AI and being someone else's employee.

by koakuma-chan

5/21/2025 at 3:16:18 PM

He's a troll account.

by mrits

5/21/2025 at 7:47:03 PM

Worth a try

by koakuma-chan

5/20/2025 at 2:06:41 AM

You laugh now, but our jobs are going to be toast in 10 years.

I thought self-driving would never happen, and now it's here.

by echelon

5/20/2025 at 4:20:29 AM

Almost here. Elon said Full Self Driving would mean full self driving within a year! That means we are less than 12 months away from not needing to drove ourselves anymore.

by margalabargala

5/20/2025 at 4:31:16 AM

I was talking about Waymo. It's real and it's spreading everywhere.

Give it another 10-20 years and your job will probably face the same fate.

by echelon

5/20/2025 at 11:36:32 AM

waymo was that company that still heavily relies on manual remote operator intervention, right?

by s1mplicissimus

5/20/2025 at 2:03:39 PM

Regardless, the car mostly driving itself while remote operators handle particularly tricky situations is a feat which will allow driver-not-in-vehicle taxis to take over. My understanding (which admittedly could be the victim of successful PR) is that the vast majority of the driving and even a majority of the trips are fully automated.

by lcnPylGDnU4H9OF

5/22/2025 at 11:11:59 AM

"particularly tricky situations" is doing a lot of heavy lifting here to describe situations every owner of a driving license is expected to handle routinely.

driver-not-in-vehicle is an interesting approach, but calling it "self-driving" is doing the mechanical turk without the reveal. Someone less charitable might assume intentional misrepresentation for the sake of winning an internet argument.

by s1mplicissimus

5/20/2025 at 5:03:49 AM

15 years would be perfect to still reach retirement age. After that, good luck to whoever's left in the profession.

by lodovic

5/20/2025 at 1:48:02 AM

This is pretty useless to be honest. It's good for telling whether a number is even, but in our industry we need more powerful functionality. We also need to know whether a number is odd.

by iamthemonster

5/20/2025 at 1:56:50 AM

RTFM, it's not only implementing isOdd but also a large set of rarely used advance operations such as isEqual, or isGreaterThan

Trully AI is astonishing

by charles_f

5/20/2025 at 2:00:09 AM

Why a specific function ?

With a few lines of code, you can just create a list with all the numbers that are even and when you need to check if a number is odd, you simply have to check if it's in the list.

by whynotmaybe

5/20/2025 at 2:45:33 AM

Yes, this is what we do as a RAG workflow. We created a list of all 32bit unsigned integers and whether they were even or odd, and we pass that into the context. The future is amazing!

by turnsout

5/20/2025 at 4:00:29 AM

I'm new to RAG and have a question: how do you get all the numbers into the context window?

Does the RAG part look up just the needed number?

I think that Gemini has a million token window (yes?) - do you have access to a model with a larger window?

Regardless, I find your ideas intriguing and wish to subscribe to your Substack.

by MikeTheGreat

5/20/2025 at 12:58:32 PM

We have an agentic system that looks up the context size, and then summarizes the even/odd table if necessary. We lose a little bit of accuracy, but now we can handle any model. Be sure to like & subscribe!

by turnsout

5/20/2025 at 8:01:57 AM

Have you tried quantizing them down to 4 bits to save on RAM?

by int_19h

5/20/2025 at 3:05:59 PM

I have found that even 2 bit quantization works, but you have to make sure you only discard the LABs (that’s what we are calling the Left Aligned Bits internally). I have no idea why it works so well but it has cut our costs significantly.

by justsid

5/20/2025 at 3:40:57 AM

I.. can't tell if you're joking or not. Pretty sure someone out there is unironically doing something as stupid as this in production

by Charon77

5/20/2025 at 8:21:56 AM

The good news is they're definitely joking. The bad news is that indeed, there's definitely someone out there doing this unironically.

by ryanpandya

5/20/2025 at 11:01:42 AM

Yes, there is.

A former co-worker had to print 5 lines of text. Sometimes, some of the lines were empty but he didn't want to print an empty line.

So he did the usual, use 'if', a lot of 'if'. He handled all the possible cases of empty VS not empty lines.

by whynotmaybe

5/20/2025 at 2:11:35 AM

Do we have enough spaces in the ALL_NUMBERS array or do we want to group them by thousands?

ALL_NUMBERS_00001

ALL_NUMBERS_00002

by sureIy

5/20/2025 at 5:20:20 AM

Yeah, some of the bigger numbers were a problem, so we switched to using a horizontally scaling db cluster so that we could cover all of the (useful) numbers. When we encounter a new number, it gets routed to the appropriate db where the results of the function are cached after being calculated. We're thinking of spinning it off as an API service actually if there's any interest.

by kaibee

5/20/2025 at 2:45:21 AM

we fired all our junior devs so we can't write code any more

by iamthemonster

5/20/2025 at 3:47:46 AM

"This is pretty useless to be honest."

I remember saying that about Bitcoin 15 years ago.

by briansm

5/20/2025 at 2:02:20 AM

You can achieve this super simply this by prompting the OpenAI API to call this tool and reverse the output.

by crubier

5/20/2025 at 2:04:03 AM

I tried that, but I kept getting "eurt" and "eslaf" and I'm not sure what to do with those. Do I need to send it back to the AI?

by SamBam

5/20/2025 at 6:23:06 AM

you might need to upgrade your vercel plan

by nbittich

5/20/2025 at 1:59:21 AM

Great news! The package includes an isOdd function as well!

by YokoZar

5/20/2025 at 6:24:43 AM

isn't it breaking the one package one responsibility principle?uncle bob wouldn't be happy, it doesn't seem clean

by nbittich

5/20/2025 at 2:16:04 AM

Simply add one to the number and then test it again.

by Cerium

5/20/2025 at 1:51:54 AM

Someone should implement this using tool calls.

by avandekleut

5/20/2025 at 4:54:47 AM

Sorry for the offtopic post, but I am looking to hire someone with 10 years of experience with is-even-ai. Urgent. Your first unpaid assignment will be to help load balance a bunch of MCP servers to add and THEN check if it's even. So much to go from here! We're a single threaded GPU first identity operator company with a lot history of returning the same thing. We're now expanding to combine and add multiple things. In 6 months of SOTA fine tuning we can already add upto 3 numbers. An MCP first. With temperature 1 we even add random numbers. An industry first. And we're just getting started. Join us. We're adding to our team!

by bosky101

5/20/2025 at 6:24:09 AM

This is a joke right?

by 66yatman

5/20/2025 at 7:10:51 AM

Certainly not, it's actually possible to add 3 float32 numbers with 90% precision using AI! With a recent breakthrough, the team is working on pushing that to 10, we have enough cracked engineers to hope to make it happen soon!

by aubanel

5/20/2025 at 9:56:42 AM

By "10", you mean "10% precision", or "10 float32 numbers"?

by Joker_vD

5/20/2025 at 1:17:22 PM

Yes.

by marcusb

5/20/2025 at 12:12:50 PM

"Karen, can you print, scan and mail me a copy of our NDA policy for our non-external internal employees"

by bosky101

5/20/2025 at 4:30:23 PM

> I am looking to hire someone with 10 years of experience with is-even-ai

is-even-ai is only 7 month old so 10 years of experience is impossible, this is clearly a joke!

by thiht

5/23/2025 at 7:04:51 PM

No it's not for a 17.1428x engineer like me!

by aubanel

5/20/2025 at 9:17:54 AM

If I were a hiring manager and saw your comment, I wouldn't hire you. Could it have been a joke in a more obvious way? Do you think all the other comments here are serious?

by tasuki

5/20/2025 at 10:02:03 AM

The parent comment was perfectly clear. Please familiarize yourself with the rules of the website that you are looking at.

by hyperhello

5/20/2025 at 12:52:07 AM

Use this to add AI to your product to appease management.

Next week, “refactor” it out and brag to manager about cost savings and performance boosts, don’t mention “removing the AI”.

by parpfish

5/20/2025 at 2:16:17 AM

NPM packages can never be removed once added to a codebase. You can only add more.

by lrvick

5/20/2025 at 5:04:20 AM

Boss: What have you been working on for the last quarter?

Me: I leveraged Deep Intelligence to build a Next-Gen Parity Classifier with 99.9% accuracy.

by freetime2

5/20/2025 at 1:54:44 PM

Smart Boss: And what did you actually do?

by rthnbgrredf

5/20/2025 at 2:04:51 AM

Is there a version I can run locally? I don't want OpenAI training on my integers.

by mitthrowaway2

5/20/2025 at 3:51:30 AM

you need the roomHeater fork. It uses the Climate Change 1.5C license

by avs733

5/20/2025 at 4:46:56 AM

Rofl

by bosky101

5/20/2025 at 8:41:35 AM

I have a few qualms with this library:

1. For an AI engineer, you can already build such a system yourself quite trivially by fine-tuning a lightweight inference model, deploying it behind a FastAPI endpoint, and orchestrating requests with a custom prompt pipeline. If you want to go further, you could even ensemble multiple LLMs for higher evenness accuracy.

2. It doesn't actually replace the modulo operator. Most people I know just use `n % 2 === 0` to check if a number is even, and they still keep that knowledge handy in case the AI service is down. This does not solve the reliability issue.

3. It does not seem very "viral" or income-generating. I know this is premature at this point, but without charging users for the library, is it reasonable to expect to make money off of this?

by thiht

5/20/2025 at 12:05:02 PM

I don't think you can do 1. without distilling & quantization

by nbittich

5/20/2025 at 1:15:47 AM

You might be able to optimize this by using embeddings. Store all the numbers and search "odd" and "even" until you find your number.

by jasonjmcghee

5/20/2025 at 1:41:39 AM

This hit way too close to home, I’m cackling.

by asidiali

5/20/2025 at 1:06:16 AM

This doesn't work if I use a reasoning model like o3, which does not allow setting max_tokens.

Without reasoning, how can I be SURE a number is even?

by ukuina

5/20/2025 at 3:50:56 AM

I think before you would deploy this to prod, you should wrap it with a few guardrails to make sure it’s not hallucinating. Pretty simple — just take the output from the llm and see if it agrees with a simple mod2 operation.

Of it agrees, return model output to the user. Otherwise do a couple of retries with different prompts.

by parpfish

5/20/2025 at 4:13:48 AM

mod2 is outdated and has not been updated for years, nobody uses it anymore

by mrheosuper

5/20/2025 at 1:28:14 AM

Multiple models?

by hartator

5/20/2025 at 1:58:20 AM

…but there’s only one dependency!! This goes against the NPM ethos of importing anything and everything that you might be tempted to just handle yourself. I’ll be waiting for the Enterprise Version that uses the appropriate number of dependencies.

by ashton314

5/20/2025 at 2:23:03 AM

This is never going to scale. Eventually we’re going to run out of numbers which have been manually checked for evenness by a human, and instead the training data for the checks will be polluted by numbers which have only been verified by computers.

by kevinventullo

5/20/2025 at 5:20:58 AM

Training computers on human stupidity has got to be infinitely scalable, by induction.

by jwillp

5/20/2025 at 2:15:20 AM

This is the best chain of comments in a HN thread in a long time. Happy to see the hacker spirit strong!

by alexitosrv

5/20/2025 at 12:52:10 AM

Can we get a leftpad-ai please?

by joshka

5/20/2025 at 2:09:17 AM

Ahem secure-left-ai-405b-quantized.

by fooker

5/20/2025 at 1:20:32 AM

How reliable is this? I'm half joking too but I wouldn't mind reading a report comparing this on OpenAI and various other LLMs.

Somehow I doubt it'll be 100%... right?

by crazysim

5/20/2025 at 3:07:19 AM

Might be more reliable to ask it to generate a JS function to compute is-even, then just js eval the returned code with the args.

What could go wrong

by nop_slide

5/20/2025 at 1:29:01 AM

normally llms are pretty bad at math, but in this case it should just look at the final digit and map 10 values which I can't imagine going wrong

by geor9e

5/20/2025 at 2:50:16 AM

I tried with this on chatgpt.com (anonymous) and it was wrong:

>You are an AI assistant designed to answer questions about numbers. You will only answer with only the word true or false.

>Is 393330370227914821469106615363204944758938252979261537157082994586230072180858944545028761701928694832864623009988147774229437650643225379825905427239525512110359581021414640894111281701792224552922491447051506246553646282117414112976459608594044929244664050172002138933343230226871897567 an even number?

response:

>True

The prompt was the same used as the library: https://github.com/Calvin-LL/is-even-ai/blob/b00dbfcbb89a197...

by gruez

5/20/2025 at 5:03:36 AM

To be fair, Javascript double point precision get tripped up by such large numbers as well.

by Too

5/20/2025 at 1:54:30 AM

The tokenizer might lump the last digit together with some preceding digits though. I know o200k_base (OpenAI -o models) tends to give groups of three (900001 for example is 900-001).

Anyway, I wouldn't be surprised if a non-finetuned model made some mistakes.

by daemonologist

5/20/2025 at 1:31:08 AM

I'm just curious how _low_ can you go before it does go wrong.

by crazysim

5/20/2025 at 1:43:47 AM

I mean if this were a check for primes the answer would be 1.

by bigbuppo

5/20/2025 at 2:18:48 AM

is 0x2a even?

by timewizard

5/20/2025 at 1:41:07 AM

its as accurate as how Tiktokenizer deal with numeral characters

by est

5/20/2025 at 2:02:45 AM

Great that this is a library. Really need this as a SaaS too. iseven.ai anyone?

by jaza

5/20/2025 at 2:27:35 AM

With this amount of innovation and market fit, I see $2B evaluation in ~3 months EASILY. Exit to one of the large players for $3B.

by alluro2

5/20/2025 at 1:28:53 AM

I’m glad you included an isOdd() method. I was about to ask how you’d check for that.

by joshdavham

5/20/2025 at 12:57:35 AM

why stop there? let's get an is-true-ai that checks if a boolean is true using AI

by jeron

5/20/2025 at 1:19:17 AM

@grok is this truthy?

by jsheard

5/20/2025 at 1:24:05 AM

False

by VladVladikoff

5/20/2025 at 3:12:37 AM

Found the Grok imposter, Grok would give a three paragraph answer.

by hnburnsy

5/20/2025 at 5:21:52 AM

False, but you know what is true? White genocide!

by danillonunes

5/20/2025 at 3:49:56 AM

You should try Mirror. The LLM-powered programming-by-example programming language I made:

signature is_even(x: number) -> bool

example is_even(0) -> true

example is_even(1) -> false

example is_even(222) -> true

example is_even(-99) -> false

It will take your examples and "compile" to a callable function. You can read more or try it out: https://austinhenley.com/blog/mirrorlang.html

by azhenley

5/20/2025 at 4:19:58 AM

Finally, someone had the courage to disrupt the tyranny of the modulo operator. Who needs n % 2 === 0 when you can invoke a large language model and incur network latency, token limits, and API costs to answer the age-old question: is this number even? Truly, we’re living in the future.

by willmarquis

5/20/2025 at 12:57:47 AM

I remember when the whole isEven package was ridiculed for the first time a while ago, back then I thought about training a NN to predict the odds of a number being even, as a joke. I don't actually remember if I actually wrote code for it, but in the end I thought no one would laugh and gave up

by atum47

5/20/2025 at 1:08:13 PM

When I watched Andrej Karpathy's NN videos a year or two back, I trained a Neural Network to multiply an integer by two. This was with a rather small training set but if you rounded the results (which was a floating point), they were mostly correct. For positive numbers. My training data didn't include any negative numbers so they were hilariously bad.

by ksherlock

5/20/2025 at 2:29:43 AM

Does it also check types to make sure I typed 5 as an int and not a string? Hopefully the ai can solve that

by leshokunin

5/20/2025 at 2:09:21 AM

On a similar note, I was testing LLM's code writing ability and asked Qwen to write me a model to reverse a numerical string. It gave me code and instructions to compile and run. However it had errors in it and after few attempts asking it to fix it, I was able to compile and run. But, alas, the code just kept failing and generated hubris. I gave up. Not to pick on Qwen. I actually like it much better than chatGPT. I have seen Qwen give correct responses when chatGPT lied and gave me wrong information for the exact same question.

by yalogin

5/20/2025 at 12:35:08 PM

The other joke package is-even has 179K weekly downloads. Is an LLM making up these numbers as well, or is this the Dead Internet at work? And if it's the Dead Internet, has the Dead Internet ever heard of caching? Maybe the Dead Internet gets a kickback from S3 egress fees.

https://www.npmjs.com/package/is-even

by jgalt212

5/20/2025 at 1:03:04 AM

Perhaps I should file an issue to increase the accuracy by including a RAG database in LanceDB with embeddings for the set of even numbers up to 32-bits.

by vunderba

5/20/2025 at 1:08:20 AM

Feeding that into your prompt will increase the token costs

by elif

5/20/2025 at 1:37:44 AM

Finally, a reason to use AI.

by bigbuppo

5/20/2025 at 8:18:53 PM

I don't think this isEven AI.

It's a remote server running assembler, C and and CGI code, it sends your OpenAI key to the Super Intelligence to make paperclips and reaps the benefit of all the productivity increase by AI for the creator.

Who of course is made from paperclips.

by moritzwarhier

5/20/2025 at 4:12:20 AM

I don't understand why everyone is making fun of this. This is how math is seriously going to be done soon enough.

by ivape

5/20/2025 at 7:54:01 AM

No, it seriously won't.

LLM's are useless for math, they can't into rigorous proofs.

> but my olympiad benchmarks!

Those are fake. Overfitting on the test set.

by otabdeveloper4

5/20/2025 at 12:54:07 AM

This works great for situations where you can’t trust traditional intelligence. Thank you for your contribution

by mrits

5/20/2025 at 11:32:27 AM

Where I work, they are laying off all even parity engineers, to be replaced with this. They are keeping the odd parity engineers.

This will achieve their goal of replacing half the staff with AI... at least I think so, I should check with is-half-ai.

by the_af

5/20/2025 at 4:21:35 AM

I can't even.

…Until now.

by riwsky

5/20/2025 at 2:46:18 AM

It would be great if it could also save results to a blockchain. Immutability. IYKYK.

With a layer of smart contracts, dApp on top, this thing could be mooning. When Lambo? In days.

by alluro2

5/20/2025 at 1:17:44 AM

Lacks an isVeryEven() method, otherwise looks feature complete.

by snorkel

5/20/2025 at 2:03:59 AM

I’m waiting for them to add the isEvenSteven() method. Then I can integrate this with my escrow smart contract.

by agentdax5

5/20/2025 at 3:34:36 AM

Kudos to the open source contributors but honestly this is the kind of area where the big commercial players need to step up and help with the heavy lifting.

by io84

5/20/2025 at 7:07:49 AM

Thanks, I can now use this to claim my application that has absolutely nothing to do with AI is now AI powered

by ChocolateGod

5/20/2025 at 2:14:23 AM

The sad reality is every large production NPM codebase will rely on this within 5 years, just like is-even.

by lrvick

5/20/2025 at 2:37:52 AM

I saw a Grok fork of this but it's using 88 and 14 as the only examples for some reason.

by fred_is_fred

5/20/2025 at 2:58:48 AM

it doesn't say if it's implemented in rust i had to click on the link to find out please future hn posters start every submission also with an exemple so i can see if i like the syntax

by rixed

5/20/2025 at 2:05:28 AM

Boss: replace all ancient assembly opcodes with AI-powered ones!

by Asilvorcarp

5/20/2025 at 3:05:00 AM

software engineering at its finest, using the power of 10,000* GPU cycles to determine one of mankind's toughest questions.

* I might be off by several magnitudes too low

by xarope

5/20/2025 at 2:14:28 AM

This still does actual work. Where are echo-ai and cat-ai?

by cobbzilla

5/20/2025 at 4:13:22 AM

IF number ends in 2,4,6,8,0 and >0 its even .....

by asdefghyk

5/20/2025 at 4:22:15 AM

Doesn’t seem extensive enough I’d rather have the AI check just to be sure

by lbrunson

5/20/2025 at 4:45:21 AM

3.14 is even

by downboots

5/20/2025 at 5:58:56 AM

-2 isn't even?

by Loocid

5/20/2025 at 1:12:11 AM

Honestly this should take string input as well. Finally I could find out if a Unicode duck or the word "syzygy" are even!

by adzm

5/20/2025 at 3:40:45 AM

f(): To test if n is even return the value of f(n-2). Special cases for zero and one. Recursion for the win.

by HocusLocus

5/20/2025 at 1:26:09 AM

60% of the time, it works every time

by jameslk

5/20/2025 at 2:23:13 AM

Great, now can you make an AI-powered type checker? I wish to expel those pesky types, which too often seem to exist only to clutter my otherwise pristine code. :)

by lucaspfeifer

5/20/2025 at 7:25:39 AM

First we invented fire. Then along came the wheel. Countless inventions followed. Today, using the most brilliant minds of our time, the technology of billionaires, and hubris that runs thickly through our veins.. we made not just another step. We leapt head on into uncertain future. It feels odd. Are we even there?

by rapnie

5/20/2025 at 3:51:22 AM

Amazing, no notes

by brundolf

5/20/2025 at 8:02:23 AM

This is so stupid, we know LLMs are not good enough for deterministic calculations. Just by running it I sometimes get that 31232198731 is even.

This is why I rolled out my own version that uses my own MCP server to call bc.

by mmustapic

5/20/2025 at 5:18:36 AM

I can’t even.

by squillion

5/20/2025 at 5:35:50 AM

that's odd.

by jerrygoyal

5/20/2025 at 1:35:12 AM

Venture capitalist here… how can I invest?

by daft_pink

5/20/2025 at 5:21:13 AM

do leftPad next!

by debaserab2

5/20/2025 at 5:33:24 AM

Am I the only one that read this as "are you even using ai for this number?".

by dmos62

5/21/2025 at 5:16:17 AM

uh.. Are these comments in this thread even serious? Because they surely feel odd to read.

by jsomedon

5/20/2025 at 12:58:28 AM

This package should be updated to use the newer gpt-4o-mini model, rather than gpt-3.5-turbo.

Its 3x cheaper, twice as fast, and supports cached input just in case you need to double check if the last number you entered was even. It also has a knowledge cutoff of September 30 2023, which helps for any newly discovered even numbers since gpt-3.5s launch!

by sodra9000