primorial returns either a native int or a Math::BigInt object, depending on size. Math::GMPz's new() doesn't like Math::BigInt objects.
One workaround is adding "". before primorial, which will force it into a string regardless of the type. E.g. say Math::GMPz->new("".primorial(53));
In reply to Re: Too big?
by danaj
in thread Too big?
by robert44444uk
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |