예제 #1
0
def problem_2():
    result_sum = 0
    for num in utils.fibonnaci():
        if num > 4000000:
            return result_sum
        if num %2 == 0:
            result_sum += num
예제 #2
0
def problem_2():
    result_sum = 0
    for num in utils.fibonnaci():
        if num > 4000000:
            return result_sum
        if num % 2 == 0:
            result_sum += num
예제 #3
0
def problem_25():
    for i, fib in enumerate(utils.fibonnaci()):
        if len(str(fib)) >= 1000:
            return i
예제 #4
0
def problem_25():
    for i, fib in enumerate(utils.fibonnaci()):
        if len(str(fib)) >= 1000:
            return i