login
A155786
Primes whose first and last digits differ by 1.
0
23, 43, 67, 89, 211, 223, 233, 241, 251, 263, 271, 281, 283, 293, 433, 443, 463, 607, 617, 647, 677, 809, 827, 829, 839, 857, 859, 877, 887, 2003, 2011, 2053, 2063, 2081, 2083, 2111, 2113, 2131, 2141, 2143, 2153, 2161, 2203, 2213, 2221, 2243, 2251, 2273
OFFSET
1,1
EXAMPLE
211 is a prime and its first and last digits differ by |2 - 1| = 1, so 211 is a term.
103 is a prime but its first and last digits differ by |1 - 3| = 2, so 103 is not a term.
PROG
(PARI) is(n)=abs(digits(n)[1]-n%10)==1 && isprime(n) \\ Charles R Greathouse IV, Dec 29 2012
CROSSREFS
Cf. A000040.
Sequence in context: A156979 A281226 A158283 * A296563 A023264 A180534
KEYWORD
nonn,base,less
AUTHOR
EXTENSIONS
827, 857, 877 etc. inserted by R. J. Mathar, Feb 13 2009
STATUS
approved