Sophie

Sophie

distrib > Fedora > 13 > x86_64 > by-pkgid > f23c149c4b69d6de91f0ec6eac424d91 > files > 19

mathomatic-15.0.7-1.fc13.x86_64.rpm

<!-- manual page source format generated by PolyglotMan v3.2, -->
<!-- available at http://polyglotman.sourceforge.net/ -->

<html>
<head>
<title>MATHO-PRIMES(1) manual page</title>
</head>
<body bgcolor='white'>
<a href='#toc'>Table of Contents</a><p>

<p> 
<h2><a name='sect0' href='#toc0'>Name</a></h2>
matho-primes - generate consecutive prime numbers 
<p> 
<h2><a name='sect1' href='#toc1'>Synopsis</a></h2>
<b>matho-primes</b>
[start [stop]] ["twin"] ["pal" [base]] <br>
<b>matho-primes</b> [-t] [-p base] [start [stop]] 
<p> 
<h2><a name='sect2' href='#toc2'>Description</a></h2>
This command line utility
is optionally part of the <a href='mathomatic.1.html'><b>mathomatic</b>(1)</a>
 package. It quickly computes any
number of consecutive prime numbers using a windowing, memory efficient
sieve of Eratosthenes algorithm, dumping them to standard output. They are
displayed one prime per line in ascending order, unless the "twin" option
is specified, which displays only twin primes two primes per line. 
<p> Generates
up to 18 decimal digit primes, or whatever is the number of digits of precision
for a long double in the C compiler used to compile this utility. 
<p> A range
may be specified on the command line, otherwise the starting number and
the number of primes to output is prompted for. The range is "start" to
"stop" inclusive, and "stop" must be greater than or equal to "start". 
<p>
If "-t" or "twin" is specified on the command line, only twin primes will
be displayed. Twin primes are two primes that differ in value by 2. Each
twin pair is displayed together on the same line separated by a space character.

<p> If "-p" or "pal" is specified on the command line, only palindromic primes
are displayed. Palindromes are symmetrical, they read exactly the same forward
and backward. The palindrome number base may be specified, the default is
base 10. The base can be any integer greater than 1. 
<p> 
<h2><a name='sect3' href='#toc3'>See Also</a></h2>
<a href='mathomatic.1.html'><b>mathomatic</b>(1)</a>
,
<a href='primorial.1.html'><b>primorial</b>(1)</a>
 
<p> 
<h2><a name='sect4' href='#toc4'>Author</a></h2>
George Gesslein II (gesslein@linux.com) <p>

<hr><p>
<a name='toc'><b>Table of Contents</b></a><p>
<ul>
<li><a name='toc0' href='#sect0'>Name</a></li>
<li><a name='toc1' href='#sect1'>Synopsis</a></li>
<li><a name='toc2' href='#sect2'>Description</a></li>
<li><a name='toc3' href='#sect3'>See Also</a></li>
<li><a name='toc4' href='#sect4'>Author</a></li>
</ul>
</body>
</html>