The following modulo-exponentiation doesn’t seem to give the correct answer:
mod(10749191 ^ 13; 5083823)
= 332642
Expected to get: 4189250
Attempting to perform: a^b mod n

If this is an issue relating to overflow please close it. However I’m thinking because an arbitrary precision floating point type is being used in the backend it may not be overflow related.