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

21
projecteuler/002/main.py Normal file
View File

@@ -0,0 +1,21 @@
import os
# Find the sum of all Fibonacci numbers below four million
s = 0
n = 1
m = 1
while m < 4000000:
temp = m
m = n + temp
n = temp
if m % 2 == 0:
s = s + m
print(s)