buffer channel

This commit is contained in:
filifa
2025-10-01 23:27:32 -04:00
parent 633a31a214
commit 5f65b35b9c
2 changed files with 6 additions and 7 deletions

View File

@@ -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) {
for v := range lib.TotientSieve(totientN, 1000) {
if v == 0 {
continue
}