add comments

This commit is contained in:
filifa
2025-09-30 23:58:28 -04:00
parent 5c42040e34
commit a760093f9d
12 changed files with 62 additions and 3 deletions

View File

@@ -20,8 +20,12 @@ import (
"math/big"
)
// TODO: expand to work for different sigmas
/*
DivisorSummatory computes the sum of sigma(k) for k=1 to n, where sigma is the divisor sum function.
*/
func DivisorSummatory(n *big.Int) *big.Int {
// TODO: expand to work for different sigmas
// employing Dirichlet's hyperbola method
sqrt := new(big.Int).Sqrt(n)