this post was submitted on 22 Feb 2026
803 points (99.0% liked)

Programmer Humor

30038 readers
748 users here now

Welcome to Programmer Humor!

This is a place where you can post jokes, memes, humor, etc. related to programming!

For sharing awful code theres also Programming Horror.

Rules

founded 2 years ago
MODERATORS
you are viewing a single comment's thread
view the rest of the comments
[โ€“] JustARegularNerd@lemmy.dbzer0.com 11 points 5 days ago (1 children)

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

[โ€“] Agent641@lemmy.world 3 points 4 days ago

And the natural distribution of primes gets smaller as integer length increases