1000-digit Fibonacci number
First read the problem description.
= 1
Fn_1 = 1
Fn = 2
n
while Fn < 10**999:
= Fn, Fn_1 + Fn
Fn_1, Fn += 1 n
Source code of the solution(s):
= 1
Fn_1 = 1
Fn = 2
n
while Fn < 10**999:
= Fn, Fn_1 + Fn
Fn_1, Fn += 1 n