Issue #11003 has been updated by Kenta Murata.

Description updated

----------------------------------------
Feature #11003: Fast modular exponentiation
https://bugs.ruby-lang.org/issues/11003#change-51968

* Author: venkatesh babu
* Status: Open
* Priority: Normal
* Assignee: 
----------------------------------------
I would like to suggest, implementing "fast Modular Exponentiation " (http://en.wikipedia.org/wiki/Modular_exponentiation) for fixnum class.
Eg: A function like pow(a, n, MOD) can be computed more efficiently than (a**n) % MOD



-- 
https://bugs.ruby-lang.org/