PRIME_PLOT
Box Plot of Primes


PRIME_PLOT is a MATLAB program which displays a "box plot" of the prime and composite numbers.

An N by N grid A of squares is displayed. If N is prime, then the squares A(N,1:N) are red. If N is composite, then A(N,D) is blue for each divisor of N.

Usage:

prime_plot ( 'n_max' )
where

Licensing:

The computer code and data files described and made available on this web page are distributed under the GNU LGPL license.

Languages:

PRIME_PLOT is available in a MATLAB version.

Related Data and Programs:

BOX_DISPLAY, a MATLAB program which displays a box plot, over integer pairs of data, of a function defined by two formulas.

PRIME_PARFOR, a MATLAB program which counts the number of primes between 1 and N, running in parallel using MATLAB's parfor feature.

PRIME_SERIAL, a MATLAB program which counts the number of primes between 1 and N, intended as a starting point for the creation of a parallel version.

PRIME_SPMD, a MATLAB program which counts the number of primes between 1 and N; running in parallel using MATLAB's Single Program Multiple Data (SPMD) feature.

Source Code:

Examples and Tests:

You can go up one level to the MATLAB source codes.


Last revised on 02 June 2012.