OFFSET
1,1
COMMENTS
See A076304 for the square roots of the sums of the three primes.
LINKS
Amiram Eldar, Table of n, a(n) for n = 1..10000 (terms 1..600 from Harvey P. Dale)
FORMULA
EXAMPLE
6 is a term because prime(6) + prime(7) + prime(8) = 13 + 17 + 19 = 49 = 7^2.
MATHEMATICA
Select[Range[60000], IntegerQ[Sqrt[Sum[Prime[k], {k, #, # + 2}]]] &] (* Ray Chandler, Sep 26 2006 *)
Position[Partition[Prime[Range[60000]], 3, 1], _?(IntegerQ[Sqrt[ Total[ #]]]&), 1, Heads->False]//Flatten (* Harvey P. Dale, Sep 28 2018 *)
PROG
(PARI) n=0; p=2; q=3; forprime(r=5, 1e9, n++; if(issquare(p+q+r), print1(n", ")); p=q; q=r) \\ Charles R Greathouse IV, Apr 07 2017
(Magma) [k:k in [1..60000]| IsSquare(&+[NthPrime(k+m):m in [0, 1, 2]])]; // Marius A. Burtea, Jan 04 2020
CROSSREFS
KEYWORD
nonn
AUTHOR
Zak Seidov, Oct 05 2002
EXTENSIONS
Corrected by Ray Chandler, Sep 26 2006
STATUS
approved