Count and display prime numbers between two bounds. Uses goroutines.
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
Gabriel Augendre b726a90e8d Update '' 9 months ago
.gitignore Implement primes counter in go 1 year ago
LICENSE Update 'LICENSE' 9 months ago Update '' 9 months ago
go.mod Implement primes counter in go 1 year ago
main.go Improve argument parsing 1 year ago

Primes counter

go build
./go-primes-counter -start 10 -max 1000 -print-count -1 -step-size 100


$ ./go-primes-counter -h
Usage of ./go-primes-counter:
  -max int
    	The end value (default 10000)
  -print-count int
    	Number of primes to print. -1 to print all.
    	Primes are not guaranteed to be sorted. (default 20)
  -start int
    	The start number
  -step-size int
    	The job size (default 1000)


If you do reuse my work, please consider linking back to this repository 🙂