adapt to update sieves for additive functions

This commit is contained in:
filifa
2025-10-07 18:10:44 -04:00
parent df317e0837
commit c842762ca9
4 changed files with 9 additions and 20 deletions

View File

@@ -55,7 +55,7 @@ func Divisors(n uint, x uint, buflen uint) chan uint {
sieve[i*j] = pow(i*j, x) + sieve[j]
}
updateMultiples(sieve, i, n)
updateMultiples(sieve, i, n, false)
ch <- sieve[i]
}
}()