this post was submitted on 02 Jul 2023
42 points (100.0% liked)

Programmer Humor

31373 readers
208 users here now

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

Rules:

founded 4 years ago
MODERATORS
 
you are viewing a single comment's thread
view the rest of the comments
[–] duncesplayed@lemmy.one 11 points 1 year ago (4 children)

Any algorithm can be O(n^2) if you only want it to be occasionally right.

[–] Iridium@lemmy.world 9 points 1 year ago (1 children)
Function isPrime(number):
    return false

Accurate for almost 100% of cases

[–] darcy@sh.itjust.works 2 points 11 months ago

as test count approach infinity

load more comments (2 replies)