(a, b, c)
| 24 | |
| 25 | |
| 26 | def b_expo_mod(a, b, c): |
| 27 | res = 1 |
| 28 | while b > 0: |
| 29 | if b&1: |
| 30 | res = ((res%c) * (a%c)) % c |
| 31 | |
| 32 | a *= a |
| 33 | b >>= 1 |
| 34 | |
| 35 | return res |
| 36 | |
| 37 | """ |
| 38 | * Wondering how this method works ! |
nothing calls this directly
no outgoing calls
no test coverage detected