prime_plot


prime_plot, a MATLAB code 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 information on this web page is distributed under the MIT license.

Languages:

prime_plot is available in a MATLAB version and an Octave version and a Python version.

Related Data and Programs:

prime_plot_test

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

matlab_plots, a MATLAB code which uses plotting to illustrate a mathematical structure, such as an iterative map, a fractal, a curve or surface.

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

Source Code:


Last revised on 06 March 2019.