Skip to content

Instantly share code, notes, and snippets.

@clementi
Created February 12, 2011 02:49
Show Gist options
  • Save clementi/823437 to your computer and use it in GitHub Desktop.
Save clementi/823437 to your computer and use it in GitHub Desktop.
Project Euler Problem #40 Solution
digits = ""
for n in range(1, 1000001):
digits += str(n)
product = 1
for i in range(7):
product *= int(digits[10 ** i - 1])
print product
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment