Top posts

Every blog post that took off on Hacker News, ranked by the votes of its best submission. 2,851 posts.

Math & Algorithms
Any year
1067

My favorite prime number generator

Many years ago I've re-posted a Stack Overflow answer with Python code for a terse prime sieve function that generates a potentially infinite sequence of prime numbers ("potentially" because it will run out of memory eventually). Since then, I've used this code many times - mostly because it's short and clear. In this…

1074

How Far Can You Get From McDonald's?

This summer, cruising down the I-5 through California’s Central Valley to the Los Angeles Basin, I unwittingly stumbled upon a most exasperating development: the country strip mall . First, let me state that I don’t hate. I’ve got nothing against Petco, Starbucks, OfficeMax, et al. When overcome by the desire for a…