Added binary exponentiaion with respect to modulo (#1428) · unconnect/TheAlgorithmsInPython@725834b · GitHub
Skip to content

Commit 725834b

Browse files
Anzoteh96cclauss
andcommitted
Added binary exponentiaion with respect to modulo (TheAlgorithms#1428)
* Added binary exponentiaion with respect to modulo * Added miller rabin: the probabilistic primality test for large numbers * Removed unused import * Added test for miller_rabin * Add test to binary_exp_mod * Removed test parameter to make Travis CI happy * unittest.main() # doctest: +ELLIPSIS ... * Update binary_exp_mod.py * Update binary_exp_mod.py * Update miller_rabin.py * from .prime_check import prime_check Co-authored-by: Christian Clauss <cclauss@me.com>
1 parent aa18600 commit 725834b

2 files changed

Lines changed: 78 additions & 0 deletions

File tree

maths/binary_exp_mod.py

Lines changed: 28 additions & 0 deletions

maths/miller_rabin.py

Lines changed: 50 additions & 0 deletions

0 commit comments

Comments
 (0)