Skip to content

Instantly share code, notes, and snippets.

Created February 9, 2015 05:43
Show Gist options
  • Save anonymous/2a00bf8321be184c9fad to your computer and use it in GitHub Desktop.
Save anonymous/2a00bf8321be184c9fad to your computer and use it in GitHub Desktop.
Pasted from IPython
sum=0
for i in range(1,1000):
if i%3==0 or i%5==0:
sum += i
print sum
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment