759
submitted 1 day ago* (last edited 1 day ago) by not_IO@lemmy.blahaj.zone to c/programmer_humor@programming.dev
you are viewing a single comment's thread
view the rest of the comments
[-] CanadaPlus@lemmy.sdf.org -5 points 15 hours ago* (last edited 14 hours ago)

I mean, an application could exist where this isn't even wrong. Maybe as a "subroutine" of another algorithm that only needs a truly composite number most of the time to work.

That this reads as a joke says a lot about what application we're intuitively expecting.

Edit: Not sure why this is being downvoted.

[-] ulterno@programming.dev 2 points 12 hours ago* (last edited 12 hours ago)

Edit: Not sure why this is being downvoted.

Perhaps because it would do better, being replaced with noop.

A link time optimiser might actually do so.

[-] CanadaPlus@lemmy.sdf.org 1 points 10 hours ago* (last edited 10 hours ago)

That's kind of what I meant by putting "subroutine" in quotes. You obviously wouldn't write it like this, you'd just use a random large number with a bit of explanation.

Oh well, live and learn. I'll try to be clearer next time.

this post was submitted on 22 Feb 2026
759 points (99.2% liked)

Programmer Humor

29947 readers
1004 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