Problem 1
This commit is contained in:
commit
ae41caa19d
5
problem1.py
Normal file
5
problem1.py
Normal 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))
|
Loading…
Reference in a new issue