Finding power for two large arguments

Emmanuel Thomé emmanuel.thome at
Thu Jan 16 11:53:18 UTC 2014

On Thu, Jan 16, 2014 at 12:20 PM, Alexander Smirnov <axsmirnov at> wrote:
> However, I got 0 as a result and I think it because of modulo value.

You think right. (10x)^a is zero mod 10^n as soon as a>=n.

> Can I somehow got the result for c = a ^ b?

Without the modulo you mean ? Depends on whether or not you can afford
the 2.51*10^56 petabytes you would need to write the result.


More information about the gmp-discuss mailing list