OFFSET
1,1
COMMENTS
The sum of first 268 terms of this sequence is also a Sophie Germain prime. 2 + 5 + 39233 + ... + 1187321288921 = 91753770231881.
LINKS
Metin Sariyar, Table of n, a(n) for n = 1..999
EXAMPLE
39233 is a term because sum of the first 56 Sophie Germain primes 2 + 3 + 5 + ... + 1811 = 39233 is prime and 39233*2+1 = 78467 is prime.
MATHEMATICA
lst={}; s=0; Do[If[PrimeQ[n]&&PrimeQ[2*n+1], s=s+n; If[PrimeQ[s]&&PrimeQ[s*2+1], AppendTo[lst, s]]], {n, 1, 1000000}]; lst
PROG
(PARI) issg(p) = isprime(2*p+1);
lista(nn) = {my(s=0); forprime(p=2, nn, if (issg(p), s + = p; if (isprime(s) && issg(s), print1(s, ", "); ); ); ); } \\ Michel Marcus, Sep 11 2019
CROSSREFS
KEYWORD
nonn
AUTHOR
Metin Sariyar, Sep 10 2019
STATUS
approved