Rebased projecteuler folder, now includes all contest programming stuff

This commit is contained in:
2021-10-26 10:54:24 +02:00
parent 1aa6120838
commit e0c627a384
77 changed files with 203 additions and 67 deletions

18
projecteuler/001/main.py Normal file
View File

@@ -0,0 +1,18 @@
import os
# Find the sum of all number that are divisible by either 3 or 5 below 1000
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))