commit ae41caa19d1d5bcf7a263a414263a769c58dc568 Author: Dece Date: Sun Dec 29 02:48:59 2019 +0100 Problem 1 diff --git a/problem1.py b/problem1.py new file mode 100644 index 0000000..29b8126 --- /dev/null +++ b/problem1.py @@ -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))