359
submitted 2 weeks ago* (last edited 2 weeks ago) by cypherpunks@lemmy.ml to c/programmerhumor@lemmy.ml
you are viewing a single comment's thread
view the rest of the comments
[-] Couldbealeotard@lemmy.world 6 points 2 weeks ago

The output is not the output of the algorithm, it's the output of the unit test.

95% of numbers up to that point at not prime. Testing the algorithm that only says "not prime" is therefore correct 95% of the time. The joke is that, similar to AI, the algorithm is being presented as a useful tool because it's correct often but not always.

this post was submitted on 22 Feb 2026
359 points (100.0% liked)

Programmer Humor

41290 readers
7 users here now

Post funny things about programming here! (Or just rant about your favourite programming language.)

Rules:

founded 6 years ago
MODERATORS