1,1

Table of n, a(n) for n=1..56.

a(1) = 6 because 2+3=5 is prime and 3-2=1 is nonprime.

a(3) = 22 because 2+11=13 is prime and 11-2=9 is nonprime.

Sequence in context: A178733 A344033 A266085 * A222001 A078472 A192754

Adjacent sequences: A144565 A144566 A144567 * A144569 A144570 A144571

nonn,easy,less

Juri-Stepan Gerasimov, Jan 04 2009

Corrected, edited, and extended by Charles R Greathouse IV, Mar 29 2010

approved