OFFSET
1,1
REFERENCES
Allan W. Johnson, Jr., Consecutive-Prime Magic Squares, Journal of Recreational Mathematics, vol. 15, 1982-83, pp. 17-18.
H. L. Nelson, A Consecutive Prime 3 x 3 Magic Square, Journal of Recreational Mathematics, vol. 20:3, 1988, p. 214.
LINKS
A.H.M. Smeets, Table of n, a(n) for n = 1..759
Eric Weisstein's World of Mathematics, Prime Magic Square
FORMULA
PROG
(PARI) A270305(n, p=A256891[n], N=3)=sum(i=2, N^2, p=nextprime(p+1), p)/N \\ Illustrates the second formula. Uses a precomputed array A256891, unless the smallest prime is supplied as optional 2nd argument. See also the 4x4 and 5x5 analog, A173981 and A176571, where this is useful for finding possible sets of primes, cf. A260673 and A272386. - M. F. Hasler, Oct 28 2018
CROSSREFS
KEYWORD
nonn
AUTHOR
Arkadiusz Wesolowski, Mar 14 2016
STATUS
approved