#Find the sum of all the multiples of 3 or 5 below 1000. 

n = input("below n: ")
s = 0
for i in range(n):
    if i%3==0 or i%5==0:
        s = s + i
print s

@@ -1,9 +1,10 @@
 #
+ 
 Find the
@@ -152,8 +152,117 @@
 print s%0A
+%0A# Optimize%0A%0Atarget = 999%0A%0Adef div(n):%0A    p = target//n%0A    return n*(p*(p+1))/2%0A%0Adiv(3) + div(5) - div(15)%0A

Multiples of 3 and 5