add comments
This commit is contained in:
@@ -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)
|
||||
|
||||
|
||||
Reference in New Issue
Block a user