diff --git a/solutions/025/1000digitfibonacci.py b/solutions/025/1000digitfibonacci.py new file mode 100644 index 0000000..b5d8762 --- /dev/null +++ b/solutions/025/1000digitfibonacci.py @@ -0,0 +1,14 @@ +previous = 0 +current = 1 +upcoming = 1 +index = 1 + +while(True): + if len(str(current)) >= 1000: + break; + upcoming = previous + current + previous = current + current = upcoming + index += 1 + +print("index", index) \ No newline at end of file