OFFSET
1,1
COMMENTS
An ordered 3 X 3 prime square is 9 consecutive primes arranged in a square:
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)
The right diagonal is p(9n-6) p(9n-4) p(9n-2).
FORMULA
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
AUTHOR
Cino Hilliard, Apr 07 2005
STATUS
approved