A dynamic linear pipeline is a one-directional chain of goroutines that grows as computation discovers new stages. First-class channels make stages and channel connections transferable between functions. section 9.2.7
Generating prime numbers
A goroutine sends sequential candidates from 2 onward. Each filter receives the first number as its prime, discards its multiples, and creates the next filter when another number survives. Closing the input eventually closes the chain and signals completion. section 9.2.7
