Index of /~gesslein/mathomatic_source_browsing/primes
Name Last modified Size Description
Parent Directory -
bigtwins.out 11-Feb-2009 19:56 9.6K
lsqrt.c 27-Nov-2011 08:42 1.4K
makefile 30-Nov-2011 20:49 3.5K
matho-mult 04-Aug-2011 08:12 701
matho-mult.1 23-Dec-2011 19:37 850
matho-pascal.1 23-Dec-2011 19:37 960
matho-pascal.c 23-Dec-2011 19:38 4.7K
matho-primes.1 23-Dec-2011 19:37 3.2K
matho-primes.c 01-Jan-2012 08:40 15K
matho-sum 04-Aug-2011 08:04 539
matho-sum.1 23-Dec-2011 19:37 833
matho-sumsq.1 23-Dec-2011 19:37 1.3K
matho-sumsq.c 23-Dec-2011 19:38 4.4K
primorial 13-Nov-2011 19:53 1.0K
primorial.1 23-Dec-2011 19:37 884
t 17-Nov-2011 08:08 275
twins.out 30-Mar-2008 17:14 12K
Mathomatic Prime Number Tools
-----------------------------
This directory contains some small, command-line, integer math utilities
written in C and Python. To compile, test, and install these utilities, type
the following commands at the Unix shell prompt:
make
make test
sudo make install
This will install:
matho-primes - quickly generate consecutive prime numbers
primorial - calculate large primorials
matho-mult - multiply large integers
matho-pascal - output Pascal's triangle
matho-sum - sum large integers
matho-sumsq - output the minimum sum of the squares of integers
These stand-alone utilities come with Mathomatic and they don't need to be
installed to work properly. See the website www.mathomatic.org to get the
latest version.
The Python program "primorial" is included in this directory for calculating
large primorials from matho-primes. A primorial is the product of all primes
up to the given number. To generate a list of all unique primorials from 2 to
97, type the following at the Unix shell after installing matho-primes:
primorial `matho-primes 2 97`
Example that calculates the number of primes less than or equal to 1,000,000:
matho-primes 0 1000000 | wc -w
The result should be 78498.