Advertisement
Guest User

Untitled

a guest
Feb 11th, 2016
54
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.19 KB | None | 0 0
  1. def main():
  2. T = input()
  3.  
  4. for t in xrange(T):
  5. N = input()
  6. print sum([n for n in xrange(1, N) if not n % 3 or not n % 5])
  7.  
  8. if __name__ == '__main__':
  9. main()
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement