Count and display prime numbers between two bounds. Uses goroutines.
Find a file
2022-01-02 19:26:34 +01:00
.gitignore Implement primes counter in go 2021-08-14 07:55:15 +02:00
go.mod Implement primes counter in go 2021-08-14 07:55:15 +02:00
LICENSE Update 'LICENSE' 2022-01-01 22:27:42 +01:00
main.go Improve argument parsing 2021-08-23 13:13:51 +02:00
README.md Improve readme with usage 2021-08-14 07:57:28 +02:00

Primes counter

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

Usage

$ ./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)