summaryrefslogtreecommitdiff
path: root/factors/totative.go
diff options
context:
space:
mode:
authorAdrien Hopkins <adrien.p.hopkins@gmail.com>2023-08-25 08:55:30 -0500
committerAdrien Hopkins <adrien.p.hopkins@gmail.com>2023-08-25 08:55:30 -0500
commit99c4b2d9980dd14e8c43ffbf00660047335ada4b (patch)
tree400aac6fc6694327454ba91e6fe6973282106769 /factors/totative.go
parent24a8dde3a708b0cd95007d940e8957b21df40055 (diff)
Limit MTC calculation to < 2^32
This ensures the output can fit into a uint64. Also, calculating it at this stage is slow, and not calculating it can make the program nearly instant even for very large numbers!
Diffstat (limited to 'factors/totative.go')
0 files changed, 0 insertions, 0 deletions