Skip to content

Instantly share code, notes, and snippets.

@jakedobkin
Created December 19, 2011 23:34
Show Gist options
  • Select an option

  • Save jakedobkin/1499430 to your computer and use it in GitHub Desktop.

Select an option

Save jakedobkin/1499430 to your computer and use it in GitHub Desktop.
Euler 63
# pretty straightforward- but i'll leave the math here to you
count = 0
for a in range (1,10):
for b in range (1,30):
if len(str(a**b))==b:
count+=1
print count
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment