Skip to content

Instantly share code, notes, and snippets.

@goyuninfo
Created May 21, 2014 22:20
Show Gist options
  • Save goyuninfo/6747115011403b86e983 to your computer and use it in GitHub Desktop.
Save goyuninfo/6747115011403b86e983 to your computer and use it in GitHub Desktop.
sum1,sum2=0,0
for i in range(100):
sum1+=(i+1)*(i+1)
sum2+=i+1
print sum2*sum2-sum1
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment