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!)
A077156 a(0) = 1, followed by next n primes followed by next n composite numbers. 2
1, 2, 4, 3, 5, 6, 8, 7, 11, 13, 9, 10, 12, 17, 19, 23, 29, 14, 15, 16, 18, 31, 37, 41, 43, 47, 20, 21, 22, 24, 25, 53, 59, 61, 67, 71, 73, 26, 27, 28, 30, 32, 33 (list; graph; refs; listen; history; text; internal format)
OFFSET
0,2
COMMENTS
A permutation of the natural numbers.
LINKS
MATHEMATICA
Module[{nn=10, prs, cmps, len}, prs=Prime[Range[(nn(nn+1))/2]]; cmps= Select[ Range[ Max[ prs]], CompositeQ]; Join[{1}, Riffle[ TakeList[prs, Range[nn]], TakeList[ cmps, Range[ nn]]]]]// Flatten (* Harvey P. Dale, Apr 29 2022 *)
CROSSREFS
Cf. A077157.
Sequence in context: A095689 A083194 A105366 * A258076 A244724 A132948
KEYWORD
easy,nonn
AUTHOR
Amarnath Murthy, Oct 31 2002
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 March 29 19:10 EDT 2024. Contains 371281 sequences. (Running on oeis4.)