OFFSET
2,1
EXAMPLE
a(2)=7 because 17+19 (2 terms) = 36 is a square, 17 being the 7th prime.
a(3)=6 because 13+17+19 (3 terms) =49 is a square, 13 being the 6th prime.
PROG
(PARI) a(n, lim=10^5) = {n --; pr = primes(lim); for (i = 1, lim-n, s = sum(k=i, i+n, pr[k]); if (issquare(s), return (i)); ); return (0); } \\ Michel Marcus, Oct 16 2013
CROSSREFS
KEYWORD
nonn
AUTHOR
Michel Marcus, Oct 16 2013
STATUS
approved