hdarwin

projecteuler.net_Multiples of 3 and 5

Feb 8th, 2013
96
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Python 0.06 KB | None | 0 0
  1. print sum(x for x in xrange(1,1000) if x%3 == 0 or x%5 == 0)
Advertisement
Add Comment
Please, Sign In to add comment