示例#1
0
文件: 002.py 项目: jaredks/euler
from euler import fibs
print sum(n for n in fibs(4000000) if not n & 1)
示例#2
0
文件: 025.py 项目: jaredks/euler
from euler import fibs, number_digits
print next(i for i, n in enumerate(fibs()) if number_digits(n) == 1000)
示例#3
0
from euler import fibs, number_digits

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