OFFSET
1,1
COMMENTS
Numbers k such that the sum of nonprimes <= k is prime.
If p is prime then p is a member if and only if p-1 is a member.
LINKS
Robert Israel, Table of n, a(n) for n = 1..10000
EXAMPLE
a(3) = 6 is a member because A101203(6) = 1+4+6 = 11 is prime.
MAPLE
s:= proc(n) option remember; if isprime(n) then procname(n-1) else procname(n-1)+ n fi end proc:
s(1):= 1:
select(n -> isprime(s(n)), [$1..1000]);
CROSSREFS
KEYWORD
nonn
AUTHOR
J. M. Bergot and Robert Israel, May 23 2021
STATUS
approved