Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- def main():
- T = input()
- for t in xrange(T):
- N = input()
- total = 0
- for n in xrange(1, N):
- if not n % 3 or not n % 5:
- total += n
- print total
- if __name__ == '__main__':
- main()
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement