OFFSET
1,2
MATHEMATICA
Table[If[PrimeQ[n], n, n-1], {n, 73}] (* James C. McMahon, Jul 07 2024 *)
PROG
(PARI) a(n) = if (isprime(n), n, n-1); \\ Michel Marcus, Jul 08 2024
CROSSREFS
KEYWORD
easy,nonn
AUTHOR
Cino Hilliard, Jan 15 2006
STATUS
approved