Start with 1, add the next number if one gets a prime then add the next number else subtract the next...

A074170

Start with 1, add the next number if one gets a prime then add the next number else subtract the next...

Terms

    a(0) =1a(1) =3a(2) =6a(3) =2a(4) =7a(5) =13a(6) =20a(7) =12a(8) =3a(9) =13a(10) =24a(11) =12a(12) =-1a(13) =-15a(14) =-30a(15) =-46a(16) =-63a(17) =-81a(18) =-100a(19) =-120a(20) =-141a(21) =-163a(22) =-140a(23) =-164a(24) =-189a(25) =-215a(26) =-242a(27) =-270a(28) =-299a(29) =-329

External references