OFFSET
1,1
COMMENTS
The subsequence of prime terms is A007821. - Michel Marcus, Jun 20 2015
EXAMPLE
a(7) = 1 because 7 is prime.
a(8) = 19 because 8 is not prime and prime(8) = 19.
MATHEMATICA
Table[If[PrimeQ[n], 1, Prime[n]], {n, 100}]
PROG
(Magma) [IsPrime(n) select 1 else NthPrime(n): n in [1..100]];
CROSSREFS
KEYWORD
nonn,easy
AUTHOR
Vincenzo Librandi, Jun 20 2015
STATUS
approved