The OEIS Foundation is supported by donations from users of the OEIS and by a grant from the Simons Foundation.

 Hints (Greetings from The On-Line Encyclopedia of Integer Sequences!)
 A088607 a(1) = 1. For n > 1, a(n) = prime(n) if n is prime, else a(n) = composite(n). 1
 1, 3, 5, 9, 11, 12, 17, 15, 16, 18, 31, 21, 41, 24, 25, 26, 59, 28, 67, 32, 33, 34, 83, 36, 38, 39, 40, 42, 109, 45, 127, 48, 49, 50, 51, 52, 157, 55, 56, 57, 179, 60, 191, 63, 64, 65, 211, 68, 69, 70, 72, 74, 241, 76, 77, 78, 80, 81, 277, 84, 283, 86, 87, 88, 90, 91 (list; graph; refs; listen; history; text; internal format)
 OFFSET 1,2 LINKS EXAMPLE a(9) = 16 = composite(9) as 9 is composite. MATHEMATICA Join[{1}, With[{comps=Select[Range[4, 100], !PrimeQ[#]&]}, Rest[Table[ If[ PrimeQ[n], Prime[n], comps[[n]]], {n, 70}]]]] (* Harvey P. Dale, Nov 03 2013 *) CROSSREFS Cf. A088608. Sequence in context: A270780 A304251 A309135 * A296243 A162699 A325129 Adjacent sequences:  A088604 A088605 A088606 * A088608 A088609 A088610 KEYWORD nonn AUTHOR Amarnath Murthy, Oct 16 2003 EXTENSIONS More terms from Anne Donovan (anned3005(AT)aol.com), Oct 17 2003 STATUS approved

Lookup | Welcome | Wiki | Register | Music | Plot 2 | Demos | Index | Browse | More | WebCam
Contribute new seq. or comment | Format | Style Sheet | Transforms | Superseeker | Recent
The OEIS Community | Maintained by The OEIS Foundation Inc.

Last modified April 20 14:54 EDT 2021. Contains 343135 sequences. (Running on oeis4.)