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

 

Logo


Hints
(Greetings from The On-Line Encyclopedia of Integer Sequences!)
A114785 Smallest prime of the form: all threes followed by prime(n). a(n) >prime(n). 0 if no such prime exists. 6
0, 0, 0, 37, 311, 313, 317, 3319, 3323, 3329, 331, 337, 333341, 3343, 347, 353, 359, 3361, 367, 3371, 373, 379, 383, 389, 397, 333101, 333103, 33107, 3109, 33113, 3333333127, 333131, 3137, 333139, 33149, 33151, 33333333157, 3163, 3167 (list; graph; refs; listen; history; text; internal format)
OFFSET

1,4

COMMENTS

Prime(n) is all zeros followed by prime(n). This is all threes followed by prime(n). Conjecture: No term is zero for n > 3.

LINKS

Alois P. Heinz, Table of n, a(n) for n = 1..377

EXAMPLE

a(8) = 3319, as 319 is composite prime(8) = 19.

PROG

(PARI) a(n) = {if (n <= 3, return (0)); k = 1; p = prime(n); kp = 10^length(Str(p)); pref = (10^k-1)/3; while (! isprime(res = kp*pref + p), k++; pref = (10^k-1)/3; ); res; } \\ Michel Marcus, Sep 15 2013

CROSSREFS

Cf. A114783, A114784.

Sequence in context: A197340 A165373 A165292 * A061014 A130450 A271184

Adjacent sequences:  A114782 A114783 A114784 * A114786 A114787 A114788

KEYWORD

base,nonn

AUTHOR

Amarnath Murthy, Nov 17 2005

EXTENSIONS

More terms from Joshua Zucker, May 06 2006

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 May 26 18:08 EDT 2020. Contains 334630 sequences. (Running on oeis4.)