ulam_spiral_test, a MATLAB code which calls ulam_spiral(), displays the integers as a spiral of grid cells, with the primes highlighted, so show that they tend to fall along diagonals, as discovered by Stanislaw Ulam.
The computer code and data files described and made available on this web page are distributed under the MIT license
ulam_spiral, a MATLAB code which displays the integers as a spiral of grid cells, with the primes highlighted, so show that they tend to fall along diagonals, as discovered by Stanislaw Ulam.