Start with sequence of positive integers, then swap a(i) and a(i-1) if a(i) is an odd prime.

A135762

Start with sequence of positive integers, then swap a(i) and a(i-1) if a(i) is an odd prime.

Terms

    a(0) =1a(1) =3a(2) =2a(3) =5a(4) =4a(5) =7a(6) =6a(7) =8a(8) =9a(9) =11a(10) =10a(11) =13a(12) =12a(13) =14a(14) =15a(15) =17a(16) =16a(17) =19a(18) =18a(19) =20a(20) =21a(21) =23a(22) =22a(23) =24a(24) =25a(25) =26a(26) =27a(27) =29a(28) =28a(29) =31

External references