From 2eab0646d57d67cf223b56086d8dd1e6b7ed4a09 Mon Sep 17 00:00:00 2001 From: Robert Date: Thu, 13 Feb 2020 18:27:58 +0100 Subject: [PATCH] Added Problem 25 --- Problem_025.py | 15 +++++++++++++++ 1 file changed, 15 insertions(+) create mode 100644 Problem_025.py diff --git a/Problem_025.py b/Problem_025.py new file mode 100644 index 0000000..042db58 --- /dev/null +++ b/Problem_025.py @@ -0,0 +1,15 @@ +a = 1 +b = 1 +c = 2 + +index = 3 +while True: + a = b + b = c + c = a + b + index += 1 + if len(str(c)) >= 1000: + break + +print(index) +# Solution: 4782 \ No newline at end of file