correl.phoenixinquis.netProjects and coding adventures

Project: Project Euler


Project Euler :: Problem #001

Add all the natural numbers below one thousand that are multiples of 3 or 5

total = 0 for x in range(1000): if (0 == x % 3) or (0 == x % 5): total = total + x print 'Answer', total