go-primes-counter/README.md

22 lines
529 B
Markdown
Raw Permalink Normal View History

2021-08-14 07:54:13 +02:00
# Primes counter
2021-08-14 07:57:28 +02:00
```shell
2021-08-14 07:54:13 +02:00
go build
./go-primes-counter -start 10 -max 1000 -print-count -1 -step-size 100
2021-08-14 07:57:28 +02:00
```
## Usage
```text
$ ./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)
2022-01-02 19:29:35 +01:00
```
# Reuse
If you do reuse my work, please consider linking back to this repository 🙂