Permutation of the nonnegative integers moving primes to nonprime indices and nonprimes to prime indices.

A163465

Permutation of the nonnegative integers moving primes to nonprime indices and nonprimes to prime indices.

Terms

    a(0) =2a(1) =3a(2) =0a(3) =1a(4) =5a(5) =4a(6) =7a(7) =6a(8) =11a(9) =13a(10) =17a(11) =8a(12) =19a(13) =9a(14) =23a(15) =29a(16) =31a(17) =10a(18) =37a(19) =12a(20) =41a(21) =43a(22) =47a(23) =14a(24) =53a(25) =59a(26) =61a(27) =67a(28) =71a(29) =15

External references