Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
An efficient sieve of Eratosthenes using CSP channels in Go
Go
Branch: master
Failed to load latest commit information.
.gitignore First commit
LICENSE Add LICENSE, README
README
TIMING Update README and TIMING
sieve1.go Update with the current Go language style changes; and performance ha…
sieve2.go Update for Go1
sieve3.go

README

----
Prime numbers sieve implementations using CSP channels in Go.
----

./sieve1.go    Taken from the Go language tutorial, worse than trial division

./sieve2.go    Eratosthenesque, simple implementation

./sieve3.go    Eratosthenesque, with wheel optimization and more efficient
		   implementations of `PeekChHeap` and `sendproxy`, the result is
		   about 4x faster than ./sieve2.go

I wrote about it here: http://blog.onideas.ws/eratosthenes.go
Something went wrong with that request. Please try again.