From ae41caa19d1d5bcf7a263a414263a769c58dc568 Mon Sep 17 00:00:00 2001 From: Dece Date: Sun, 29 Dec 2019 02:48:59 +0100 Subject: [PATCH] Problem 1 --- problem1.py | 5 +++++ 1 file changed, 5 insertions(+) create mode 100644 problem1.py 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))