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

 Year-end appeal: Please make a donation to the OEIS Foundation to support ongoing development and maintenance of the OEIS. We are now in our 59th year, we have over 358,000 sequences, and we’ve crossed 10,300 citations (which often say “discovered thanks to the OEIS”). Other ways to Give
 Hints (Greetings from The On-Line Encyclopedia of Integer Sequences!)
 A129543 Gray code ordering of the prime numbers. 1
 2, 3, 7, 5, 17, 19, 13, 11, 41, 43, 53, 47, 31, 37, 29, 23, 97, 101, 107, 103, 127, 131, 113, 109, 73, 79, 89, 83, 67, 71, 61, 59, 227, 229, 239, 233, 257, 263, 251, 241, 283, 293, 311, 307, 277, 281, 271, 269, 179, 181, 193, 191, 211, 223, 199, 197, 157, 163, 173 (list; graph; refs; listen; history; text; internal format)
 OFFSET 0,1 COMMENTS This sequence is obtained by permuting the indices of the prime numbers by the Gray code ordering of the integers. LINKS MathWorld, Gray Code FORMULA a(n) = A000040(1+A003188(n)). PROG (PARI) a(n) = prime(1 + bitxor(n, n>>1)); \\ Michel Marcus, Apr 23 2013 CROSSREFS Cf. A000040, A003188. Sequence in context: A067363 A083188 A228775 * A137440 A294639 A038026 Adjacent sequences: A129540 A129541 A129542 * A129544 A129545 A129546 KEYWORD nonn AUTHOR Stephen Crowley, May 30 2007 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.

Last modified December 3 08:35 EST 2022. Contains 358515 sequences. (Running on oeis4.)