24
24
number of consecutive prime numbers using a windowing, memory efficient
25
25
sieve of Eratosthenes algorithm, dumping them to standard output. They are
26
26
displayed one prime per line in ascending order, unless the "twin" option
27
is specified, which displays only twin primes two primes per line.
27
is specified, which displays only twin primes, two primes per line.
29
29
up to 18 decimal digit primes, or whatever is the number of digits of precision
30
for a long double in the C compiler used to compile this utility.
30
for a <b>long double</b> in the C compiler used to compile this utility.
32
32
may be specified on the command line, otherwise the starting number and
33
33
the number of primes to output is prompted for. The range is "start" to
34
34
"stop" inclusive, and "stop" must be greater than or equal to "start".
36
If "-t" or "twin" is specified on the command line, only twin primes will
37
be displayed. Twin primes are two primes that differ in value by 2. Each
38
twin pair is displayed together on the same line separated by a space character.
40
<p> If "-p" or "pal" is specified on the command line, only palindromic primes
41
are displayed. Palindromes are symmetrical, they read exactly the same forward
42
and backward. The palindrome number base may be specified, the default is
43
base 10. The base can be any integer greater than 1.
36
If the "-t" or "twin" option is specified on the command line, only <b>twin
37
primes</b> will be displayed. Twin primes are two primes that differ in value
38
by 2. Each twin pair is displayed together on the same line separated by
40
<p> If the "-p" or "pal" option is specified on the command
41
line, only <b>palindromic primes</b> are displayed. Palindromes are symmetrical,
42
they read exactly the same forward and backward. The palindrome number base
43
may be specified, the default is base 10. The base can be any integer greater
45
46
<h2><a name='sect3' href='#toc3'>See Also</a></h2>
46
47
<a href='mathomatic.1.html'><b>mathomatic</b>(1)</a>
48
<a href='primorial.1.html'><b>primorial</b>(1)</a>
48
, <a href='primorial.1.html'><b>primorial</b>(1)</a>
49
, <a href='matho-mult.1.html'><b>matho-mult</b>(1)</a>
50
, <a href='matho-sum.1.html'><b>matho-sum</b>(1)</a>
51
54
<h2><a name='sect4' href='#toc4'>Author</a></h2>
52
55
George Gesslein II (gesslein@linux.com) <p>