OFFSET
1,1
COMMENTS
See A097457 for the (maybe more natural) variant where "n-th composite"(=A002808(n)) is replaced by "n-th nonprime" (=A018252(n)).
Essentially the same as A088608. - R. J. Mathar, Feb 03 2014
LINKS
Harvey P. Dale, Table of n, a(n) for n = 1..1000
MATHEMATICA
Module[{nn=100, prs, cmps, len}, cmps=Select[Range[nn], CompositeQ]; len= Length[ cmps]; prs=Prime[Range[len]]; Table[If[PrimeQ[n], cmps[[n]], prs[[n]]], {n, len}]] (* Harvey P. Dale, Dec 27 2022 *)
CROSSREFS
KEYWORD
nonn
AUTHOR
M. F. Hasler, Jan 29 2014
STATUS
approved