All published worksheets from http://sagenb.org
n = 0 total = 0 for k in range (10000): n = 3*k if n < 10000: if 0 == n%5: total += n print total
base = 3 total = 0 for x in range (10000): if base*x <10000: total =+ base*x print total