OFFSET
1,1
LINKS
Chai Wah Wu, Table of n, a(n) for n = 1..10000 (n = 1..528 from Robert Israel)
MAPLE
Primes:= select(isprime, [2, seq(i, i=3..10^7, 2)]):
P6:= Primes[1..-6]+Primes[2..-5]+Primes[3..-4]+Primes[4..-3]+Primes[5..-2]+Primes[6..-1]:
select(t -> issqr(8*t+1), P6): # Robert Israel, Sep 26 2016
MATHEMATICA
f[n_]:=Prime[n]+Prime[n+1]+Prime[n+2]+Prime[n+3]+Prime[n+4]+Prime[n+5]; Select[Table[f[n], {n, 9!}], IntegerQ[Sqrt[1+8# ]]&]
Select[Total/@Partition[Prime[Range[25000]], 6, 1], OddQ[Sqrt[8#+1]]&] (* Harvey P. Dale, Mar 06 2023 *)
PROG
(Magma) [ t: n in [1..22000] | IsSquare(8*t+1) where t is &+[NthPrime(n+s): s in [0..5]] ]; // Bruno Berselli, Apr 28 2011
CROSSREFS
KEYWORD
nonn
AUTHOR
Vladimir Joseph Stephan Orlovsky, Feb 18 2010
STATUS
approved