PowerMod -- compute a modular power efficiently |
Syntax |
PowerMod(A: INT, B: INT, M: INT): INT |
Description |
Example |
/**/ PowerMod(12345,41041,41041); -- 41041 is a Carmichael number 12345 /**/ PowerMod(123456789,987654321,32003); -- cannot compute 123456789^987654321 directly 2332 |