addingtwice = multiplying with two.
Your terms is 5^10^5^10, and not something like 5^10 + 10^5 and all such complicated things. The terms can be simply expressed as the product of two primes 5 and 2 with some powers.