OFFSET
1,2
COMMENTS
LINKS
Ray Chandler, Table of n, a(n) for n = 1..16000
Daniel Suteu, Perl program
EXAMPLE
MAPLE
N:=2000:
for n from 1 to N by 2 do
X:=add(ithprime(r), r=1..n);
Y:=add(ithprime(k), k=1..X);
if isprime(Y) then print(n);
end if:
end do:
MATHEMATICA
primeSum[n_] := Sum[Prime[i], {i, n}]; Select[Range[300], PrimeQ[primeSum[primeSum[#]]] &] (* Amiram Eldar, Nov 07 2018 *)
PROG
(PARI) sfp(n) = sum(k=1, n, prime(k)); \\ A007504
isok(n) = isprime(sfp(sfp(n))); \\ Michel Marcus, Nov 08 2018
CROSSREFS
KEYWORD
nonn
AUTHOR
David James Sycamore, Nov 06 2018
STATUS
approved