Skip to content

Instantly share code, notes, and snippets.

@terrycojones
terrycojones / gist:1991029
Created March 7, 2012 05:02
Smallest natural number with no English wikipedia page
import itertools, requests
for i in itertools.count():
r = requests.get('http://en.wikipedia.org/wiki/%d' % i)
if r.status_code == 404:
print i
break