Created
March 7, 2012 05:02
-
-
Save terrycojones/1991029 to your computer and use it in GitHub Desktop.
Smallest natural number with no English wikipedia page
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment