move sieves to subpackage

This commit is contained in:
filifa
2025-10-07 17:23:16 -04:00
parent 03e463b7a6
commit a9c7f8091b
10 changed files with 16 additions and 15 deletions

View File

@@ -22,7 +22,7 @@ import (
"os"
"github.com/spf13/cobra"
"scm.dairydemon.net/filifa/mathtools/internal/lib"
"scm.dairydemon.net/filifa/mathtools/internal/lib/sieve"
)
var totientN uint
@@ -31,7 +31,7 @@ func totient(cmd *cobra.Command, args []string) {
bufStdout := bufio.NewWriter(os.Stdout)
defer bufStdout.Flush()
for v := range lib.TotientSieve(totientN, 1000) {
for v := range sieve.TotientSieve(totientN, 1000) {
if v == 0 {
continue
}