OFFSET
1,1
LINKS
Harvey P. Dale, Table of n, a(n) for n = 1..1000
EXAMPLE
a(1) = 997 is prime and sum of the first 35 composites from 4 to 51.
And 997 + 52 = 1049 is prime and 1049 + 54 = 1103 is prime. But 1103 + 55 is even and thus not prime.
MATHEMATICA
Select[Partition[Accumulate[Select[Range[20*10^6], CompositeQ]], 3, 1], AllTrue[ #, PrimeQ]&][[All, 1]] (* Requires Mathematica version 10 or later *) (* Harvey P. Dale, Sep 30 2017 *)
PROG
(PARI) i=0; b=0; for( a=2, 2*10^6, if( !isprime(a) , i=i+1; b=b+a; if(( isprime(b) & isprime(b+a+1) &isprime(a+2)& isprime(b+2*a+4))||(isprime(b)&isprime(a+1)&isprime(b+a+2)&isprime(a+3)&isprime(b+2*a+6)), print1(b, ", "))))
CROSSREFS
KEYWORD
nonn
AUTHOR
Robin Garcia, Jan 04 2014
STATUS
approved
