forked from TheAlgorithms/Go
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add Deterministic Miller-Rabin Primality Test (TheAlgorithms#484)
* feat: add deterministic miller-rabin test * feat: refactor and commenting Tasks: - Refactored code. - Added some more witness groups. - Commented code. * chore: run `gofmt` * fix: remove old code * chore: update tests * fix: deterministic function test * chore: run `gofmt` * chore: update function name in doc comment Co-authored-by: Taj <[email protected]> * chore: separate tests for the two versions * chore: `isTrivial` follows the `, ok` idiom * chore: add named returns for better docs * chore: use named returns to make code more concise Co-authored-by: Taj <[email protected]>
- Loading branch information
1 parent
628336b
commit f38fdca
Showing
2 changed files
with
148 additions
and
52 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters