commit 2a0b0f1ca078ea530663c37a68a0ebc8279f4413 Author: Philippe Zwietering Date: Sat Mar 28 03:09:13 2020 +0100 Started on project Euler, finished ass 1 in the most ugly way diff --git a/1/main.py b/1/main.py new file mode 100644 index 0000000..82d373a --- /dev/null +++ b/1/main.py @@ -0,0 +1,16 @@ +import os + + +threes = set() +fives = set() + +for x in range(334): + threes.add(3*x) + +for x in range(200): + fives.add(5*x) + + +threesfives = threes.union(fives) + +print(sum(threesfives)) \ No newline at end of file