Home | History | Annotate | Download | only in chan

Lines Matching refs:primes

9 // Generate primes up to 100 using channels, checking the results.
111 // Return a chan int of primes.
122 primes := make(chan int, 10)
123 primes <- 3
125 // Merge channels of multiples of 'primes' into 'composites'.
130 m := multiples(<-primes)
153 // primes ? sqrt(nth prime). Thus, the merging goroutine will
154 // receive from 'primes' much slower than this goroutine
158 primes := sendproxy(primes)
166 primes <- p
180 primes := Sieve()
183 if x := <-primes; x != a[i] {