RosettaCodeData/Task/Babbage-problem/Python/babbage-problem-3.py

4 lines
137 B
Python
Raw Permalink Normal View History

2023-07-01 11:58:00 -04:00
from itertools import accumulate, count
print(*next(filter(lambda t: t[1] % 1000000 == 269696, enumerate(accumulate(count(1, 2)), 1))))