a simple prime generator in Go, returns a channel of primes, you can pass in limit.
Switch branches/tags
Nothing to show
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Type Name Latest commit message Commit time
Failed to load latest commit information.
README.md
simple_prime.go

README.md

simple_prime

a simple prime generator in Go

This is my first custom package in Go. Though not the most efficient sieve out there, I think it will be useful in solving Project Eulers. You can pass in a max or limit, and the PrimeGenerate function returns a channel of prime integers.

Try it out, if you make some improvements or have suggestions, please get in touch.