Skip to content

Instantly share code, notes, and snippets.

@captainsafia
Created August 17, 2012 20:50
Show Gist options
  • Save captainsafia/3382526 to your computer and use it in GitHub Desktop.
Save captainsafia/3382526 to your computer and use it in GitHub Desktop.
Solution to Project Euler Problem 1 in Python
sum=0
for x in range (0,1000):
if x%3==0 or x%5==0: sum+=x
print sum
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment