rename functions

This commit is contained in:
filifa
2025-10-07 17:28:31 -04:00
parent a9c7f8091b
commit 26c197318e
10 changed files with 15 additions and 16 deletions

View File

@@ -17,9 +17,9 @@ along with this program. If not, see <http://www.gnu.org/licenses/>.
package sieve
/*
MobiusSieve computes mobius(k) for k=1 to n, where mobius is the Mobius function.
Mobius computes mobius(k) for k=1 to n, where mobius is the Mobius function.
*/
func MobiusSieve(n uint, buflen uint) chan int {
func Mobius(n uint, buflen uint) chan int {
sieve := make([]int, n)
for i := 0; i < int(n); i++ {
sieve[i] = i