login
The OEIS is supported by the many generous donors to the OEIS Foundation.

 

Logo
Hints
(Greetings from The On-Line Encyclopedia of Integer Sequences!)
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 (list; graph; refs; listen; history; text; internal format)
OFFSET
1,1
LINKS
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

Lookup | Welcome | Wiki | Register | Music | Plot 2 | Demos | Index | Browse | More | WebCam
Contribute new seq. or comment | Format | Style Sheet | Transforms | Superseeker | Recents
The OEIS Community | Maintained by The OEIS Foundation Inc.

License Agreements, Terms of Use, Privacy Policy. .

Last modified April 18 11:02 EDT 2024. Contains 371779 sequences. (Running on oeis4.)