Exemple #1
0
from euler import fibs
print sum(n for n in fibs(4000000) if not n & 1)
Exemple #2
0
from euler import fibs, number_digits
print next(i for i, n in enumerate(fibs()) if number_digits(n) == 1000)
Exemple #3
0
from euler import fibs, number_digits

print next(i for i, n in enumerate(fibs()) if number_digits(n) == 1000)