login
The OEIS Foundation is supported by donations from users of the OEIS and by a grant from the Simons Foundation.

 

Logo

Year-end appeal: Please make a donation to the OEIS Foundation to support ongoing development and maintenance of the OEIS. We are now in our 56th year, we are closing in on 350,000 sequences, and we’ve crossed 9,700 citations (which often say “discovered thanks to the OEIS”).

Hints
(Greetings from The On-Line Encyclopedia of Integer Sequences!)
A114018 Least n-digit prime whose digit reversal is also prime. 8
2, 11, 101, 1009, 10007, 100049, 1000033, 10000169, 100000007, 1000000007, 10000000207, 100000000237, 1000000000091, 10000000000313, 100000000000261, 1000000000000273, 10000000000000079, 100000000000000049 (list; graph; refs; listen; history; text; internal format)
OFFSET

1,1

COMMENTS

The more compact version A168159 gives many more terms, cf. formula. [M. F. Hasler, Nov 21 2009]

LINKS

Harvey P. Dale, Table of n, a(n) for n = 1..100

FORMULA

a(n) = 10^(n-1) + A168159(n). [M. F. Hasler, Nov 21 2009]

MATHEMATICA

f[n_] := Block[{k = 10^(n - 1)}, While[ !PrimeQ[k] || !PrimeQ[FromDigits@Reverse@IntegerDigits@k], k++ ]; k]; Array[f, 19] (* Robert G. Wilson v, Nov 19 2005 *)

lndp[n_]:=Module[{p=NextPrime[10^n]}, While[CompositeQ[IntegerReverse[ p]], p = NextPrime[ p]]; p]; Array[lndp, 20, 0] (* Requires Mathematica version 10 or later *) (* Harvey P. Dale, May 05 2019 *)

PROG

(PARI) for(x=1, 1e99, until( isprime(x=nextprime(x+1)) & isprime(eval(concat(vecextract(Vec(Str(x)), "-1..1")))), ); print1(x", "); x=10^#Str(x)-1) \\ M. F. Hasler, Nov 21 2009

CROSSREFS

Cf. A168159, A007500, A006567, A122490. [M. F. Hasler, Nov 21 2009]

Sequence in context: A062397 A158578 A003617 * A089770 A249447 A199302

Adjacent sequences:  A114015 A114016 A114017 * A114019 A114020 A114021

KEYWORD

base,nonn

AUTHOR

Amarnath Murthy, Nov 12 2005

EXTENSIONS

More terms from Robert G. Wilson v, Nov 19 2005

STATUS

approved

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

License Agreements, Terms of Use, Privacy Policy. .

Last modified December 1 14:10 EST 2021. Contains 349430 sequences. (Running on oeis4.)