A163465 Permutation of the nonnegative integers moving primes to nonprime indices and nonprimes to prime indices.
2, 3, 0, 1, 5, 4, 7, 6, 11, 13, 17, 8, 19, 9, 23, 29, 31, 10, 37, 12, 41, 43, 47, 14, 53, 59, 61, 67, 71, 15, 73, 16, 79, 83, 89, 97, 101, 18, 103, 107, 109, 20, 113, 21, 127, 131, 137, 22, 139, 149, 151, 157, 163, 24, 167, 173, 179, 181, 191, 25, 193, 26, 197, 199, 211, 223
Offset: 0
Examples
The positions 0,1,2,3,4,5,... are N,N,P,P,N,P... (N=nonprime, P=prime), and are filled by two prime, then two nonprime, one prime, one nonprime member of A001477.
Extensions
Definition clarified, offset set to 0, values checked by R. J. Mathar, Aug 02 2009
Missing term 89 contributed by Jaroslav Krizek, Oct 02 2010
Comments