skip 0
This commit is contained in:
parent
5b62e1e1ab
commit
f3f87710cb
|
|
@ -53,6 +53,10 @@ func totientSieve(n uint) chan uint {
|
||||||
|
|
||||||
func totient(cmd *cobra.Command, args []string) {
|
func totient(cmd *cobra.Command, args []string) {
|
||||||
for v := range totientSieve(totientN) {
|
for v := range totientSieve(totientN) {
|
||||||
|
if v == 0 {
|
||||||
|
continue
|
||||||
|
}
|
||||||
|
|
||||||
fmt.Println(v)
|
fmt.Println(v)
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue