OFFSET
1,1
FORMULA
An ordered 3 X 3 prime square is 9 consecutive primes arranged in a square of the form p(9n-8) p(9n-7) p(9n-6) p(9n-5) p(9n-4) p(9n-3) p(9n-2) p(9n-1) p(9n) n=1,2,.. Right diagonal is p(9n-6 p(9n-4) p(9n-2)
EXAMPLE
The first 3 X 3 prime square
2 3 5
7 11 13
17 19 23
sum of right diagonal = 5 + 11 + 17 = 33 the first entry.
PROG
(PARI) sum3x3right(n) = { local(x, j, s); forstep(x=0, n, 9, s=0; forstep(j=3, 7, 2, s += prime(x+j); ); print1(s", ") ) }
CROSSREFS
KEYWORD
easy,nonn,new
AUTHOR
Cino Hilliard (hillcino368(AT)hotmail.com), Apr 07 2005
STATUS
approved