OFFSET
1,1
LINKS
Robert Israel, Table of n, a(n) for n = 1..10000
MAPLE
N:= 100: # to get all terms before the first term > Prime(N).
Primes:= [seq(ithprime(i), i=2..N)]: nP:= N-1: S:= 2: R:= 2:
do
found:= false;
for j from 1 to nP do
if isprime(S+Primes[j]) then
R:= R, Primes[j];
S:= S + Primes[j];
Primes:= subsop(j=NULL, Primes);
nP:= nP-1;
found:= true;
break
fi
od;
if not found or nP = 0 then break fi;
R:= R, Primes[1];
S:= S + Primes[1];
Primes:= Primes[2..-1];
nP:= nP-1;
od:
R; # Robert Israel, Aug 04 2020
CROSSREFS
KEYWORD
nonn
AUTHOR
Amarnath Murthy, Jul 28 2003
EXTENSIONS
More terms from Ray Chandler, Sep 17 2003
STATUS
approved