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
KEYWORD
easy,nonn,less
AUTHOR
David Wasserman, Aug 16 2003
STATUS
approved