Finding power for two large arguments

Alexander Smirnov axsmirnov at gmail.com
Thu Jan 16 12:07:51 UTC 2014


Now I see, thanks a lot!


2014/1/16 Emmanuel Thomé <emmanuel.thome at gmail.com>

> On Thu, Jan 16, 2014 at 12:20 PM, Alexander Smirnov <axsmirnov at gmail.com>
> 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.
>
> E.
>


More information about the gmp-discuss mailing list