~ubuntu-branches/ubuntu/natty/mathomatic/natty

« back to all changes in this revision

Viewing changes to doc/matho-primes.1.html

  • Committer: Bazaar Package Importer
  • Author(s): Sandro Tosi
  • Date: 2010-05-27 23:29:55 UTC
  • mfrom: (1.1.26 upstream) (3.1.15 sid)
  • Revision ID: james.westby@ubuntu.com-20100527232955-xzvvnwdzy8c9mdji
Tags: 15.1.1-1
* New upstream release
* debian/patches/10_fix_makefile.dpatch
  - updated to new upstream code
* debian/patches/30_bts-459093_ftbfs_make_test_time.dpatch
  - updated to new upstream code

Show diffs side-by-side

added added

removed removed

Lines of Context:
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. 
28
28
<p> Generates
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. 
31
31
<p> A range
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". 
35
35
<p>
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.
39
 
 
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
 
39
a space character. 
 
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
 
44
than 1. 
44
45
<p> 
45
46
<h2><a name='sect3' href='#toc3'>See Also</a></h2>
46
47
<a href='mathomatic.1.html'><b>mathomatic</b>(1)</a>
47
 
,
48
 
<a href='primorial.1.html'><b>primorial</b>(1)</a>
49
 
 
 
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
 
 
52
 
50
53
<p> 
51
54
<h2><a name='sect4' href='#toc4'>Author</a></h2>
52
55
George Gesslein II (gesslein@linux.com) <p>