OFFSET
1,4
COMMENTS
a(p) = p-2 if p is larger member of a twin prime pair.
Conjecture: There are finitely many zeros in this sequence.
FORMULA
Largest prime of the form n - sum prime(r).
PROG
(PARI) a(n) = {p = 2; n -= p; while ((n > 0) && !isprime(n), p = nextprime(p+1); n -= p); max(0, n); } \\ Michel Marcus, Jul 29 2017
CROSSREFS
KEYWORD
nonn
AUTHOR
Amarnath Murthy, Nov 30 2003
EXTENSIONS
More terms from David Wasserman, Oct 27 2005
STATUS
approved