AI's prime number generator was totally correct — it just stopped at the first one

moultano · x · 2026-10-21

moultano shares a hilarious AI coding moment: a model-generated prime number generator was technically completely correct — it just halted after the first prime. He quips that it's less a Sieve of Eratosthenes and more of a "pipe."

Related event: AI's prime generator stops at first prime, mocked as "a pipe, not a sieve"(2 posts)→

Original post →

More from Fun

Fun channel →