login
A085925
a(n) is taken to be the smallest positive integer greater than a(n-1) which is consistent with the condition "n is a member of the sequence if and only if a(n) is not prime".
2
1, 3, 4, 6, 7, 8, 9, 10, 12, 14, 17, 18, 19, 20, 23, 29, 30, 32, 33, 34, 37, 41, 42, 43, 47, 53, 59, 61, 62, 63, 67, 68, 69, 70, 71, 73, 74, 79, 83, 89, 90, 91, 92, 97, 101, 103, 104, 107, 109, 113, 127, 131, 132, 137, 139, 149, 151, 157, 158, 163, 164, 165, 166, 167, 173
OFFSET
1,2
EXAMPLE
a(4) = 6 because 4 is in the sequence and 6 is the next nonprime after a(3). a(5) = 7 because 5 is not in the sequence and 7 is the next prime after a(4).
CROSSREFS
Sequence in context: A375740 A122409 A039093 * A107907 A080804 A164386
KEYWORD
easy,nonn,less
AUTHOR
David Wasserman, Aug 16 2003
STATUS
approved