Logo
90% done means 90% left to do.
  • Home
  • Hot
  • Random
  • Search

Browse

  • AI AI
  • AWS AWS
  • Agile Agile
  • Algorithms Algorithms
  • Android Android
  • Apple Apple
  • Azure Azure
  • Backend Backend
  • Bash Bash
  • C++ C++
  • Cloud Cloud
  • All Categories
As an Amazon Associate ProgrammerHumor.io earns from qualifying purchases.

HTTP 418: I'm a teapot

The server identifies as a teapot now and is on a tea break, brb

HTTP 418: I'm a teapot

The server identifies as a teapot now and is on a tea break, brb

Machine-learning-joke Memes

Posts tagged with Machine-learning-joke

O Of One Prime Checker

Python Programming Testing Algorithms Math
6 hours ago 14.0K views 0 shares
O Of One Prime Checker
Behold, the most efficient prime checker in the history of computer science! Just return False for literally EVERYTHING and watch your accuracy skyrocket as your test size grows. Who needs actual logic when you can achieve 94% accuracy by simply being wrong about everything? The genius here is that most numbers aren't prime anyway, so by just yeeting out a hard-coded False, you're technically correct most of the time. It's like showing up to a math exam, writing "no" on every true/false question, and somehow passing because the universe is chaos. O(1) time complexity baby – can't get faster than that! Sure, it'll fail spectacularly on actual primes, but who's counting? Certainly not this function. The title "O Of One" is *chef's kiss* because it's both referencing the O(1) constant time complexity AND the fact that this function has exactly ONE brain cell.

Today's picks

Logitech Mouse MX Vertical, 910-005448

Logitech Mouse MX Vertical, 910-005448

Affiliate
$84.99
Git Commits At 3 AM

Git Commits At 3 AM

Git
590.4K views 7 months ago
My reaction to broken code

My reaction to broken code

Javascript
129.3K views 3 years ago