OFFSET
1,1
LINKS
Zak Seidov, Table of n, a(n) for n = 1..1000
EXAMPLE
a(1) = 2 because 1 is not prime, hence a(1) = prime(1) = 2.
a(2) = 2 because 2 is prime.
MAPLE
seq(`if`(isprime(i), i, ithprime(i)), i=1..100);
MATHEMATICA
Table[If[PrimeQ[n], n, Prime[n]], {n, 1, 200}] (* Zak Seidov, Nov 04 2009 *)
CROSSREFS
KEYWORD
nonn,easy
AUTHOR
Francois Jooste (phukraut(AT)hotmail.com), Mar 18 2002
EXTENSIONS
More terms, b-file and Mathematica code from Zak Seidov, Nov 04 2009
STATUS
approved