aboutsummaryrefslogtreecommitdiffstats
path: root/analysis.py
diff options
context:
space:
mode:
Diffstat (limited to 'analysis.py')
-rw-r--r--analysis.py14
1 files changed, 14 insertions, 0 deletions
diff --git a/analysis.py b/analysis.py
new file mode 100644
index 0000000..f9de516
--- /dev/null
+++ b/analysis.py
@@ -0,0 +1,14 @@
1import math
2
3for overs in range(1,8):
4 steps = 0
5 i = 2
6 n = pow(10, overs)
7 while i < n:
8 j = 1
9 while j < n:
10 steps = steps + 1
11 j = j * i
12 i += 1
13
14 print(f"With {n:8} it took {steps:8}")