From f3f87710cba8352166d60596d3a9d1060b6b83c3 Mon Sep 17 00:00:00 2001 From: filifa Date: Mon, 15 Sep 2025 19:19:19 -0400 Subject: [PATCH] skip 0 --- cmd/totient.go | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/cmd/totient.go b/cmd/totient.go index 5c4b38c..5428468 100644 --- a/cmd/totient.go +++ b/cmd/totient.go @@ -53,6 +53,10 @@ func totientSieve(n uint) chan uint { func totient(cmd *cobra.Command, args []string) { for v := range totientSieve(totientN) { + if v == 0 { + continue + } + fmt.Println(v) } }