My solutions to the problems found at Project Euler.

Jump to: | 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10 | 11 | 12 | 13 | 14 | 16 | 17 | 20 | 21 | 22 | 25 | 3-2 |

Problem 1


#! /usr/bin/python
# Finding the sum of all multiples of 3 and 5 below 1,000.

if __name__ == "__main__":
  total = 0
  for n in range(1000):
    if n % 3 == 0 or n % 5 == 0:
      total += n
      
  print str(total) + ' is the sum of all multiples of 3 and 5 below 1,000.'

jb