OFFSET
0,2
COMMENTS
a(0) = 1, a(3) = 11, a(5) = 35, a(11) = 101 and a(33) = 311 are the only odd elements <= 10^6 and probably the only ones. If so, then for n >= 34, a(n) is the smallest even k >= a(n-1)+4 for which none of k-1, k-11, k-35, k-101 or k-311 is prime. - David W. Wilson, Dec 14 2006
LINKS
D. W. Wilson, Table of n, a(n) for n = 0..10000
EXAMPLE
26 is the smallest number > 11 which differs from 1, 2, 10, 11 by a nonprime (25, 24, 16, 15), so 26 is the next term after 11.
PROG
(PARI) print1(a=1, ", "); v=[1]; n=1; while(n<55, a++; k=1; while(k<=n&&!isprime(a-v[k]), k++); if(k>n, n++; v=concat(v, a); print1(a, ", ")))
CROSSREFS
KEYWORD
nonn
AUTHOR
Amarnath Murthy, Aug 04 2002
EXTENSIONS
Edited and extended by Klaus Brockhaus, Aug 09 2002
STATUS
approved