Skip to content

Instantly share code, notes, and snippets.

@shieldsd
Created March 15, 2012 08:48
Show Gist options
  • Save shieldsd/2043029 to your computer and use it in GitHub Desktop.
Save shieldsd/2043029 to your computer and use it in GitHub Desktop.
Project Euler #6
print sum(range(1, 101)) ** 2 - sum(n * n for n in range(1, 101))
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment