Hacker News new | ask | show | jobs
by quchen 1795 days ago
Just enumerate them all, if none is missing it's fairly easy to compress. (And 1b per number is really inefficient) ;-)

main = traverse print [1..99999999]

3 comments

The Kolmogorov complexity of the set of all phone numbers is pretty low. All phone numbers with a few missing is also pretty low.

In fact, I now wonder if you can even compress the 3.8b phone number set to less than 1 bit per phone number. It should be pretty doable since a significant chunk of the number space is not valid.

But not all numbers are valid? 911. Not all area codes exist.
What language is that?
Haskell