This site is supported by donations to The OEIS Foundation.

 Hints (Greetings from The On-Line Encyclopedia of Integer Sequences!)
 A088104 Smallest n-digit prime beginning with prime(n), or 0 if no such prime exists. 7
 2, 31, 503, 7001, 11003, 130003, 1700021, 19000013, 230000003, 2900000017, 31000000027, 370000000003, 4100000000003, 43000000000063, 470000000000023, 5300000000000129, 59000000000000011, 610000000000000031, 6700000000000000021, 71000000000000000047, 730000000000000000001 (list; graph; refs; listen; history; text; internal format)
 OFFSET 1,1 COMMENTS Conjecture: No term is zero. Subsidiary sequences: (1) A088754 = number of n-digit primes beginning with prime(n). (2) A088755 = number of n-digit primes beginning with n. If Legendre's conjecture is true, then no term is zero. - Chai Wah Wu, Jun 18 2019 LINKS David A. Corneth, Table of n, a(n) for n = 1..723 EXAMPLE a(6) = 130003 begins with prime(6) = 13 and has 6 digits. MATHEMATICA Prepend[NextPrime[FromDigits[PadRight[IntegerDigits[#], PrimePi[#]]]]&/@Prime[Range[2, 25]], 2]  (* Harvey P. Dale, Jan 09 2011 *) PROG (PARI) a(n) = my(p=prime(n), d=digits(p)); c=nextprime(p*10^(n-#d)); cd=digits(c); if(vector(#d, i, cd[i]) == d, return(c), return(0)) \\ David A. Corneth, Apr 13 2019 (Python) from sympy import prime, nextprime def A088104(n):     p = prime(n)     return nextprime(p*10**(n-len(str(p)))-1) # Chai Wah Wu, Jun 18 2019 CROSSREFS Cf. A077504, A077505, A088105, A088754, A088755. Sequence in context: A218687 A071360 A108491 * A057692 A058244 A245051 Adjacent sequences:  A088101 A088102 A088103 * A088105 A088106 A088107 KEYWORD base,nonn AUTHOR Amarnath Murthy, Sep 24 2003 EXTENSIONS More terms from Ray Chandler, Oct 15 2003 More terms from David A. Corneth, Apr 13 2019 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.

Last modified October 19 21:28 EDT 2019. Contains 328244 sequences. (Running on oeis4.)