Sophie

Sophie

distrib > Fedora > 15 > i386 > by-pkgid > ddb8c4e6ca053ed8711e09d0295f0c29 > files > 22

mathomatic-15.5.0-1.fc15.i686.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> [-ht] [-c count] [-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 <b>long double</b> in the C compiler used to compile this utility. All numbers
displayed by this utility are decimal (base 10) prime numbers. A prime number
is an integer that cannot be factored. 
<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 <b>start</b> to <b>stop</b> inclusive, and <b>stop</b> must
be greater than or equal to <b>start.</b> 
<p> If the <b>-c</b> option is specified, the number
of lines of primes displayed is limited to the decimal count that follows
this option. 
<p> If the <b>-t</b> or "twin" option is specified on the command line,
only <b>twin primes</b> 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 the <b>-p</b> or "pal" option is specified on the command
line, only <b>palindromic primes</b> are displayed. Palindromes are symmetrical,
they read exactly the same forward and backward. The palindromic number
<b>base</b> may be specified, the default is base 10. The <b>base</b> can be any integer
greater than 1. Primes are always displayed in decimal (base 10). 
<p> Short
help is displayed when given the <b>-h</b> option. 
<p> 
<h2><a name='sect3' href='#toc3'>Author</a></h2>
George Gesslein II (gesslein@linux.com)
at "<a href='http://www.mathomatic.org'>http://www.mathomatic.org</a>
". 
<p> 
<h2><a name='sect4' href='#toc4'>Reporting Bugs</a></h2>
If you find a bug, please report
it to the author or at "<a href='https://launchpad.net/mathomatic'>https://launchpad.net/mathomatic</a>
". 
<p> 
<h2><a name='sect5' href='#toc5'>See Also</a></h2>
<a href='mathomatic.1.html'><b>mathomatic</b>(1)</a>
,
<a href='primorial.1.html'><b>primorial</b>(1)</a>
, <a href='matho-mult.1.html'><b>matho-mult</b>(1)</a>
, <a href='matho-sum.1.html'><b>matho-sum</b>(1)</a>
 <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'>Author</a></li>
<li><a name='toc4' href='#sect4'>Reporting Bugs</a></li>
<li><a name='toc5' href='#sect5'>See Also</a></li>
</ul>
</body>
</html>