Skip to content

Instantly share code, notes, and snippets.

@shieldsd
Created March 30, 2012 14:22
Show Gist options
  • Save shieldsd/2251876 to your computer and use it in GitHub Desktop.
Save shieldsd/2251876 to your computer and use it in GitHub Desktop.
Project Euler #30
print sum(x for x in range(2, 9 ** 5 * 5)
if x == sum(int(c) ** 5 for c in str(x)))
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment