A prime array is an array of single decimal digits
arranged to contain as many distinct primes as possible.
Numbers are formed by reading one or more consecutive digits horizontally, vertically,
or diagonally, in either direction along a straight line.
Each prime is counted only once, even if it occurs
in multiple positions.
For the
array, 11 primes are maximal and are contained, for
example, in the two arrays
|
(1)
|
giving the primes (3, 7, 13, 17, 31, 37, 41, 43, 47, 71, 73) and (3, 7, 13, 17, 19, 31, 37, 71, 73, 79, 97), respectively.
The best
array is
|
(2)
|
which contains 30 primes: 3, 5, 7, 11, 13, 17, 31, 37, 41, 43, 47, 53, 59, 71, 73, 79, 97, 113, 157, 179, ... (OEIS A032529). This array was found by Rivera and Ayala and shown by Weisstein in May 1999 to be maximal and unique (modulo reflection and rotation).
Examples of
prime arrays are
|
(3)
|
all of which contain 63 primes. The first was found by C. Rivera and J. Ayala in 1998, and the other three by James Bonfield
on April 13, 1999. Mike Oakes proved by computation that the 63 primes
is optimal for the
array.
Examples of
prime arrays are
|
(4)
|
each of which contains 116 primes. The first was found by C. Rivera and J. Ayala in 1998, and the second by Wilfred Whiteside on April 17, 1999.
Examples of
prime arrays are
|
(5)
|
each of which contains 187 primes. One was found by S. C. Root, and the others by M. Oswald in 1998.
An example of a
prime array is
|
(6)
|
which contains 281 primes and was found by Wilfred Whiteside on April 29, 1999.
An example of an
prime array is
|
(7)
|
which contains 394 primes and was found by Wilfred Whiteside in 2005 as a part of Al Zimmerman's programming contest.
An example of a
prime array is
|
(8)
|
which contains 527 primes and was found by Gary Hertel.
Early heuristic estimates by Rivera and Ayala suggested 58-63, 112-121, and 205-218 distinct primes for ,
, and
arrays, respectively. These
estimates are not rigorous bounds. The best scores reported in 2005 for
arrays with
, 2, ..., 7 are 1, 11, 30, 63, 116, 187, 281 (OEIS A109943).
The first four values are proved maxima, while the values for
, 6, and 7 are conjectured maxima (J.-C. Meyrignac,
pers. comm., Sep. 19, 2005).
For the
rectangular array, 18 primes are maximal and are
contained in the arrays
|
(9)
| |||||
|
(10)
|
For the
rectangular array, 43 primes are maximal, and (modulo
reflection and rotation)
there are exactly 3 distinct solutions
|
(11)
|
as proved by Mike Oakes on Dec. 29, 2004 with a 12 GHz-hour computation.