Skip to content

Instantly share code, notes, and snippets.

@janoulle janoulle/problem1.py
Created Dec 19, 2011

Embed
What would you like to do?
Problem 1 - Project Euler in Python by Jane Ullah
x = 0
for i in range(0,1000):
if (i%3 == 0) or (i%5 == 0):
x += i;
print('total sum is: ' + str(x));
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.