OFFSET
1,4
COMMENTS
EXAMPLE
We label the corresponding prime sequence b(*). So, b(1) = b(0) + 2 is prime, so a(1) = 1 giving b(1) = 3. Later b(10) = 53, so that b(11) = b(10) + 3266 is the earliest prime, so a(11)=41 (via A007504(41)).
PROG
(PARI) genit(nterms=50)={my(arr=List(), last=1, summ, icnt); while(#arr<nterms, summ=last; icnt=0; forprime(x=2, +oo, summ+=x; icnt+=1; if(icnt%2==0, next); if(ispseudoprime(summ), listput(arr, icnt); last=summ; break))); arr}
CROSSREFS
KEYWORD
nonn,easy
AUTHOR
Bill McEachen, Apr 30 2023
STATUS
approved