login
The OEIS is supported by the many generous donors to the OEIS Foundation.

 

Logo
Hints
(Greetings from The On-Line Encyclopedia of Integer Sequences!)
A088608 a(1) = 1, a(n) = prime(n) if n is composite else a(n) = composite(n). 2
1, 6, 8, 7, 10, 13, 14, 19, 23, 29, 20, 37, 22, 43, 47, 53, 27, 61, 30, 71, 73, 79, 35, 89, 97, 101, 103, 107, 44, 113, 46, 131, 137, 139, 149, 151, 54, 163, 167, 173, 58, 181, 62, 193, 197, 199, 66, 223, 227, 229, 233, 239, 75, 251, 257, 263, 269, 271, 82, 281, 85, 293 (list; graph; refs; listen; history; text; internal format)
OFFSET
1,2
LINKS
EXAMPLE
a(9) = 23 = prime(9).
MATHEMATICA
Join[{1}, Module[{nn=100, cmps}, cmps=Select[Range[2nn], CompositeQ]; Table[ If[ PrimeQ[n], cmps[[n]], Prime[n]], {n, 2, nn}]]] (* Harvey P. Dale, May 22 2021 *)
CROSSREFS
Cf. A088607.
Sequence in context: A157852 A327839 A365125 * A323984 A176104 A011481
KEYWORD
base,nonn
AUTHOR
Amarnath Murthy, Oct 16 2003
EXTENSIONS
More terms from Ray Chandler, Oct 18 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 | Recents
The OEIS Community | Maintained by The OEIS Foundation Inc.

License Agreements, Terms of Use, Privacy Policy. .

Last modified April 25 09:38 EDT 2024. Contains 371967 sequences. (Running on oeis4.)