OFFSET
1,2
COMMENTS
Conjecture: for n > 6, n - 2 <= a(n) <= n + 1. - Robert Israel, Jun 01 2026
LINKS
Robert Israel, Table of n, a(n) for n = 1..10000
EXAMPLE
19 (not 18) follows 15 though 15+18 = 33 is also composite but 33 is already obtained as 16 +17.
MAPLE
N:= 200: R:= 1: r:= 1: Cands:= [$2..N]: Comps:= remove(isprime, [$4..2*N]): nC:= nops(Cands):
do
found:= false;
for i from 1 to nC do
if r + Cands[i] > Comps[-1] then break fi;
v:= ListTools:-BinarySearch(Comps, r+Cands[i]);
if v > 0 then found:= true; break fi;
od;
if not found then break fi;
R:= R, Cands[i]; r:= Cands[i]; Cands:= subsop(i=NULL, Cands); nC:= nC-1;
Comps:= subsop(v=NULL, Comps);
od:
R; # Robert Israel, Jun 01 2026
CROSSREFS
KEYWORD
nonn,changed
AUTHOR
Amarnath Murthy, Sep 09 2002
EXTENSIONS
More terms from Sascha Kurz, Feb 01 2003
STATUS
approved
