Skip to content

Instantly share code, notes, and snippets.

@soimort
Created March 5, 2012 15:47
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 soimort/1978921 to your computer and use it in GitHub Desktop.
Save soimort/1978921 to your computer and use it in GitHub Desktop.
Project Euler - Problem 6
print(((100 + 1) * 100 // 2) ** 2
- sum([i ** 2 for i in range(1, 101)]))
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment