6 lines
155 B
Python
6 lines
155 B
Python
"""Multiples of 3 and 5."""
|
|
|
|
mult3 = set(i for i in range(1000) if i % 3 == 0)
|
|
mult5 = set(i for i in range(1000) if i % 5 == 0)
|
|
print(sum(mult3 | mult5))
|