.\" DO NOT MODIFY THIS FILE! It was generated by help2man 1.47.4. .TH PRIMESIEVE "1" "April 2017" "primesieve (Debian 5.7.2+ds-2)" "primesieve" .SH NAME primesieve \- efficient prime number generator .SH SYNOPSIS .B primesieve [\fI\,START\/\fR] \fI\,STOP \/\fR[\fI\,OPTION\/\fR]... .SH DESCRIPTION Generate the primes and/or prime k\-tuplets in the interval [START, STOP] (< 2^64) using the segmented sieve of Eratosthenes. .SH OPTIONS .TP \fB\-c[N\fR+], \fB\-\-count[\fR=\fI\,N\/\fR+] Count primes and prime k\-tuplets, N <= 6, e.g. \fB\-c1\fR primes, \fB\-c2\fR twins, \fB\-c3\fR triplets, ... .TP \fB\-d\fR, \fB\-\-dist=\fR Sieve the interval [START, START + N] .TP \fB\-h\fR, \fB\-\-help\fR Print this help menu .TP \fB\-n\fR, \fB\-\-nthprime\fR Calculate the nth prime, e.g. 1 100 \fB\-n\fR finds the 1st prime > 100 .TP \fB\-\-no\-status\fR Turn off the progressing status .TP \fB\-p[N]\fR, \fB\-\-print\fR[=\fI\,N\/\fR] Print primes or prime k\-tuplets, N <= 6, e.g. \fB\-p1\fR primes, \fB\-p2\fR twins, \fB\-p3\fR triplets, ... .TP \fB\-q\fR, \fB\-\-quiet\fR Quiet mode, prints less output .TP \fB\-s\fR, \fB\-\-size=\fR Set the sieve size in kilobytes, N <= 2048 .TP \fB\-\-test\fR Run various sieving tests and exit .TP \fB\-t\fR, \fB\-\-threads=\fR Set the number of threads, N <= CPU cores .TP \fB\-\-time\fR Print the time elapsed in seconds .TP \fB\-v\fR, \fB\-\-version\fR Print version and license information .SH EXAMPLES .TP primesieve 1000 Count the primes below 1000 .TP primesieve 1000 \-c2 Count the twin primes below 1000 .TP primesieve 1e6 \-\-print Print the primes below 10^6 .TP primesieve 100 200 \-p Print the primes inside [100, 200] .SH COPYRIGHT Copyright \(co 2010\-2016 Kim Walisch .PP BSD 2\-Clause License