def main(N): fibseq = fib.fibonacci_seq(1,1) k, s = next(fibseq), 0 while k < N: if not k % 2: s += k k = next(fibseq) return s
def main(): for k, x in enumerate(fibonacci_seq(1, 1)): if len(str(x)) >= 1000: return k+1