我必须为a,b,m <2 ^ 32的大值有效地计算^^ b mod m, 其中^^是tetration运算符:2 ^^ 4 = 2 ^(2 ^(2 ^ 2))
m不是素数而不是10的幂.
你能帮我吗?
algorithm math number-theory
algorithm ×1
math ×1
number-theory ×1