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!)
A077361 Smallest n-digit prime whose external digits as well as internal digits form a prime, or 0 if no such number exists. 2
0, 0, 127, 1021, 10037, 100057, 1000033, 10000079, 100000037, 1000000021, 10000000033, 100000000057, 1000000000039, 10000000000037, 100000000000031, 1000000000000037, 10000000000000079, 100000000000000021 (list; graph; refs; listen; history; text; internal format)
OFFSET
0,3
COMMENTS
Conjecture: no entry is zero for n>2.
LINKS
MATHEMATICA
eifpQ[n_]:=Module[{idn=IntegerDigits[n]}, PrimeQ[FromDigits[{First[ idn], Last[ idn]}]]&&PrimeQ[FromDigits[Rest[Most[idn]]]]]; ndp[pwr_]: = Module[ {p=NextPrime[10^pwr]}, While[!eifpQ[p], p=NextPrime[p]]; p]; Join[ {0, 0}, Table[ndp[i], {i, 2, 20}]] (* Harvey P. Dale, Jan 03 2015 *)
CROSSREFS
Sequence in context: A075942 A253925 A196658 * A225148 A160897 A038994
KEYWORD
base,hard,nonn
AUTHOR
Amarnath Murthy, Nov 05 2002
EXTENSIONS
More terms from Sascha Kurz, Jan 11 2003
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 19 18:05 EDT 2024. Contains 371798 sequences. (Running on oeis4.)