this post was submitted on 22 Feb 2026
856 points (99.1% liked)

Programmer Humor

30234 readers
481 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
(page 2) 11 comments
sorted by: hot top controversial new old
[–] CanadaPlus@lemmy.sdf.org -5 points 1 week ago* (last edited 1 week ago) (1 children)

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 1 week ago* (last edited 1 week ago) (5 children)

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.

load more comments (5 replies)
load more comments
view more: ‹ prev next ›