Skip to content

Instantly share code, notes, and snippets.

@dhermes
Created September 29, 2014 01:23
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save dhermes/9a9f0af06b23b2031232 to your computer and use it in GitHub Desktop.
Save dhermes/9a9f0af06b23b2031232 to your computer and use it in GitHub Desktop.
for first5 in xrange(10**4, 10**5):
first5_list = map(int, str(first5))
for last5 in itertools.product((0, 1), repeat=5):
digit_list = first5_list + list(last5) # last5 is a tuple
if fits_criterion(digit_list):
print digit_list
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment