sympy/sympy — pull request #2586 by shashankn91 (2013-11-11 16:59:18+00:00)
Title: Added fast modular exponentiation to sympy.ntheory.primtest.py

This is intended as a part of the AKS primality testing algorithm I am working on.
I did not find fast modular exponentiation algorithm in the sympy docs, so I thought I'd contribute!

Thank you.