OFFSET
1,1
COMMENTS
Corresponding values of s = sqrt(Sum_{i=k..k+119} prime(i)) are A166262.
EXAMPLE
MATHEMATICA
PrimePi/@Select[Partition[Prime[Range[169*10^4]], 120, 1], IntegerQ[ Sqrt[ Total[ #]]]&][[All, 1]] (* Harvey P. Dale, Jan 22 2019 *)
PROG
(PARI) lista(nn) = {pr = primes(nn); for (i=1, nn-119, s = sum(k=i, i+119, pr[k]); if (issquare(s), print1(i, ", ")); ); } \\ Michel Marcus, Oct 15 2013
(PARI) S=vecsum(primes(119)); p=0; q=prime(120); for(n=1, oo, issquare(S+=q-p) && print1(n", "); q=nextprime(q+1); p=nextprime(p+1)) \\ It is about 25% faster to avoid "nextprime(p)" at expense of keeping the last 120 primes used in a vector p, using {my(i=Mod(0, 120)); ...p[lift(i)+1]... i++}. - M. F. Hasler, Jan 04 2020
CROSSREFS
KEYWORD
nonn,less
AUTHOR
Zak Seidov, Oct 10 2009
EXTENSIONS
a(30)-a(32) from Michel Marcus, Oct 15 2013
Edited by M. F. Hasler, Jan 04 2020
STATUS
approved