Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func SieveOfEratosthenes ¶
SieveOfEratosthenes returns all the primes strictly less than n. If n happens to be a prime, it will NOT be returned in the result. Runtime is O(N log log N)
func SieveOfEratosthenesGenerator ¶
func SieveOfEratosthenesGenerator() <-chan int
SieveOfEratosthenesGenerator returns primes indefinitely. Only runs when the channel is read for more primes.
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.