Problem 1

This commit is contained in:
Dece 2019-12-29 02:48:59 +01:00
commit ae41caa19d

5
problem1.py Normal file
View file

@ -0,0 +1,5 @@
"""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))