Reminds me of this xkcd:
More like: https://xkcd.com/2236/

info
View the source to see how I embedded the picture without copying it. The hover text had to be copied though.

info
View the source to see how I embedded the picture without copying it. The hover text had to be copied though.
also sort of https://xkcd.com/2934/
My favorite part of this is that they test it up to 99999 and we see that it fails for 99991, so that means somewhere in the test they actually implemented a properly working function.
That’s a legitimate thing to do if you have a slow implementation that’s easy to verify and a fast implementation that isn’t.
LLMs belong to the same category. Seemingly right, but not really right.
l/whoosh
If you scaled it based on the size of the integer you could get that up to 99.9% test accuracy. Like if it’s less than 10 give it 50% odds of returning false, if it’s under 50 give it 10% odds, otherwise return false.
Makes me wonder where the actual break even would be. Like how long does making one random number take versus sins lookups. Fuck it, do it in parallel. Fastest wins.
I’m struggling to follow the code here. I’m guessing it’s C++ (which I’m very unfamiliar with)
bool is_prime(int x) { return false; }Wouldn’t this just always return false regardless of x (which I presume is half the joke)? Why is it that when it’s tested up to 99999, it has a roughly 95% success rate then?
I suppose because about 5% of numbers are actually prime numbers, so false is not the output an algorithm checking for prime numbers should return
Oh I’m with you, the tests are precalculated and expect a true to return on something like 99991, this function as expected returns false, which throws the test into a fail.
Thank you for that explanation
And the natural distribution of primes gets smaller as integer length increases
Because only 5% of those numbers are prime
It has actually 100% accuracy





