OFFSET
1,4
COMMENTS
The first 2 X 2 prime square of a set of ordered 2 X 2 prime squares begins with 2. Just a 2 X 2 prime square is any 4 consecutive primes arranged in a square formation.
FORMULA
A 2 X 2 ordered prime square is 4 consecutive primes arranged in a square of the form p(4n-3) p(4n-2) p(4n-1) p(4n) where n=1, 2, ... and Left diagonal is p(4n+1), p(4n) Right diagonal is p(4n+2), p(4n+3).
EXAMPLE
The 4th prime square is
41 43
47 53
sum of left diagonal = 41+53 = 94
sum of right diagonal = 43+47 = 90
difference = 4
So 4 is the 4th term.
PROG
(PARI) diffdiag(n) = { local(x, d1, d2); forstep(x=1, n, 4, d1=prime(x)+ prime(x+3); d2=prime(x+1)+ prime(x+2); print1(abs(d1-d2)", ") ) }
CROSSREFS
KEYWORD
easy,nonn
AUTHOR
Cino Hilliard, Apr 07 2005
STATUS
approved