OFFSET
1,1
COMMENTS
This is the complement of sequence A014683.
FORMULA
a(n) = A014684(n) + 1. - Bill McEachen, Nov 01 2020
MATHEMATICA
Array[# + Boole[! PrimeQ@ #] &, 72] (* Michael De Vlieger, Nov 05 2020 *)
PROG
(PARI) a(n) = if (!isprime(n), n+1, n); \\ Michel Marcus, Nov 06 2020
CROSSREFS
KEYWORD
easy,nonn
AUTHOR
Cino Hilliard, Jan 15 2006
EXTENSIONS
Offset 1 from Michel Marcus, Nov 06 2020
STATUS
approved