Project Euler + Python

For a while I’ve been meaning to play with python but I could never think of something to do with it; so I decided to try and solve as many problems in Project Euler as I can.

Here is my mercurial repository on bitbucket: //

This is my attempt at the first problem so far:

Problem: //
source: //

result = 0
for i in range(1000):
    if i % 5 == 0:
	    result += i
    elif i % 3 == 0:
	    result += i


Leave a Reply

This site uses Akismet to reduce spam. Learn how your comment data is processed.