From eea912b9c327d397197212e326b7f2728d59a306 Mon Sep 17 00:00:00 2001 From: Yigit Sever Date: Mon, 9 Nov 2020 03:11:55 +0300 Subject: Add used python scripts --- analysis.py | 14 ++++++++++++++ 1 file changed, 14 insertions(+) create mode 100644 analysis.py (limited to 'analysis.py') diff --git a/analysis.py b/analysis.py new file mode 100644 index 0000000..f9de516 --- /dev/null +++ b/analysis.py @@ -0,0 +1,14 @@ +import math + +for overs in range(1,8): + steps = 0 + i = 2 + n = pow(10, overs) + while i < n: + j = 1 + while j < n: + steps = steps + 1 + j = j * i + i += 1 + + print(f"With {n:8} it took {steps:8}") -- cgit v1.2.3-70-g09d2