def solution(n: int) -> int:
return sum(set([i for i in range(0, n, 3)] + [i for i in range(0, n, 5)]))
assert solution(10) == 23
assert solution(20) == 78
assert solution(10000) == 23331668
def solution(n:int) -> int:
return sum ([i for i in range(n) if i%3==0 or i%5==0])
assert solution(10) == 23
assert solution(20) == 78
assert solution(10000) == 23331668
def solution(n: int) -> int:
sum = 0
for i in range(0 , n):
if i % 3 == 0 or i % 5 == 0:
sum += i
return sum
assert solution(10) == 23
assert solution(20) == 78
assert solution(10000) == 23331668
def solution(n: int) -> int:
sum = 0
for i in range(n):
if i % 3 == 0 or i % 5 == 0:
sum += i
return sum
assert solution(10) == 23
assert solution(20) == 78
assert solution(10000) == 23331668