The OEIS mourns the passing of Jim Simons and is grateful to the Simons Foundation for its support of research in many branches of science, including the OEIS.
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!)
A077360 Primes whose external digits as well as internal digits form a prime. 5
127, 131, 137, 139, 151, 157, 173, 179, 223, 229, 233, 239, 331, 337, 421, 431, 433, 457, 523, 631, 677, 733, 739, 751, 773, 823, 829, 839, 853, 859, 937, 977, 1021, 1031, 1033, 1039, 1051, 1117, 1171, 1193, 1231, 1237, 1291, 1297, 1319, 1373, 1433, 1439 (list; graph; refs; listen; history; text; internal format)
OFFSET
1,1
COMMENTS
Intersection of A069686 and A077359.
LINKS
EXAMPLE
139 is a term as 19 and 3 are both primes.
PROG
(PARI) forprime(p=1, 1440, if(isprime(indigs(p))&&isprime(exdigs(p)), print1(p, ", ")))
(Python)
from sympy import isprime, primerange
for p in primerange(100, 1440):
if isprime(int(str(p)[1:-1])) and isprime(int(str(p)[0]+str(p)[-1])):
print(p) # Jason Yuen, Apr 21 2024
CROSSREFS
Sequence in context: A334105 A077358 A069686 * A102636 A335314 A075595
KEYWORD
base,nonn,easy
AUTHOR
Amarnath Murthy, Nov 05 2002
EXTENSIONS
Edited and extended by Klaus Brockhaus, Nov 06 2002
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 June 7 06:42 EDT 2024. Contains 373145 sequences. (Running on oeis4.)