I just play around with Python and found just interesting thing: my computer (i5, 3 GHz) just hang out after several hours of attempting to compute 10 ** 10 ** 10.
I know Math isn't a purpose Python was created for, but I wonder isn't there a way to help Python to compute it.
What I have so far is my observation: n ** (2** lg(n**n)) works 2 times faster then n ** n ** n
n = 8 ** (8 ** 8)
n2 = 8 ** (2 ** 24)
# measured by timeit
> 4.449993866728619e-07
> 1.8300124793313444e-07
1) Does anyone have an idea how to solve n ** n ** n in a most sophisticated way?
2) Do generators can help in order to minimize memory abuse?