OFFSET
1,1
LINKS
Robert Israel, Table of n, a(n) for n = 1..10000
MAPLE
s:= 0: Cands:= remove(isprime, [$4..1000]): nC:= nops(Cands):
R:= NULL: s:= 0: p:= 1:
for n from 1 do
p:= nextprime(p);
found:= false;
for i from 1 to nC do
if s + Cands[i] mod p = 0 then
R:= R, Cands[i];
s:= s + Cands[i];
Cands:= subsop(i=NULL, Cands);
nC:= nC-1;
found:= true;
break
fi
od;
if not found then break fi
od:
R;
CROSSREFS
KEYWORD
nonn,look
AUTHOR
Amarnath Murthy, Sep 24 2002
EXTENSIONS
More terms from Ray Chandler, Oct 25 2003
Name changed by Robert Israel, Dec 07 2024
STATUS
approved