aboutsummaryrefslogtreecommitdiffstats
path: root/analysis.py
blob: f9de5168bdfbc92779372f81b9f25a2eee8f890b (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
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}")