New submission from Pavel Chuvakhov:
Standard `pow` function of three integer arguments should result in a reminder
`(x**y) % z`. It seems that `pow(x,y,z)` ignores `%z` operation if type(z) is
not `int`. This happens also in the cases when `z` has type numpy.int32,
numpy.int64, etc. I
Pavel Chuvakhov added the comment:
Sorry about script, n1 should be n, and n2 should be m. Updated script is
attached.
Ofc mpz is a way out. One also could cast int( np.int32 ) explicitly. I just
wanted to underline that the best way is to hide all this stuff from a user and
not make the