summaryrefslogtreecommitdiff
path: root/factors/factorize.go
diff options
context:
space:
mode:
authorAdrien Hopkins <adrien.p.hopkins@gmail.com>2023-10-09 13:35:04 -0500
committerAdrien Hopkins <adrien.p.hopkins@gmail.com>2023-10-09 13:35:04 -0500
commiteeff1f3c61fad805bb5ce0170e98378c3b706c18 (patch)
tree0cffbefc58b6c9196d779abb249c3c82bce4ffc4 /factors/factorize.go
parent194004a9f99096ab724758ba39f39c50c71a21ed (diff)
Add more tests & fix found bugs
- TotativeDigits was defined incorrectly, previously counted totatives from 0 to r-1, now counts digits from 1 to r. This ensures that len(TotativeDigits(r)) = Totient(r).
Diffstat (limited to 'factors/factorize.go')
0 files changed, 0 insertions, 0 deletions