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".
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
Examples
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).