Power with modulu
sf_kersteinroie at bezeqint.net
Sun Dec 5 11:59:40 CET 2004
I want to compute a**b%c for very long numbers.
Computing a**b and then applying modulu is not practical, since it takes
There is a built-in optional parameter to the long.__pow__(a,b[,modulu]),
and it works well.
My question is: How can I write it is a form of an expression, like a**b?
I prefer not to fill my script with calls of the form long.__pow__(a,b,c).
More information about the Python-list