diff options
| author | Adrien Hopkins <adrien.p.hopkins@gmail.com> | 2023-10-09 13:35:04 -0500 |
|---|---|---|
| committer | Adrien Hopkins <adrien.p.hopkins@gmail.com> | 2023-10-09 13:35:04 -0500 |
| commit | eeff1f3c61fad805bb5ce0170e98378c3b706c18 (patch) | |
| tree | 0cffbefc58b6c9196d779abb249c3c82bce4ffc4 /factors/factorize.go | |
| parent | 194004a9f99096ab724758ba39f39c50c71a21ed (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
