login
This site is supported by donations to The OEIS Foundation.
Logo

Hints
(Greetings from The On-Line Encyclopedia of Integer Sequences!)
A065581 Smallest prime ending in exactly n 7's. 6
7, 277, 1777, 47777, 2477777, 16777777, 137777777, 577777777, 1777777777, 67777777777, 377777777777, 16777777777777, 17777777777777, 577777777777777, 2777777777777777, 157777777777777777 (list; graph; refs; listen; history; internal format)
OFFSET

1,1

LINKS

Harry J. Smith, Table of n, a(n) for n=1,...,100

MATHEMATICA

Do[a = Table[7, {n} ]; k = 0; While[ b = FromDigits[ Join[ IntegerDigits[k], a]]; Mod[k, 10] == 7 || !PrimeQ[b], k++ ]; Print[b], {n, 1, 17} ]

PROG

(PARI) { for (n=1, 100, t=10^n; b=7*(t - 1) / 9; d=0; while(!isprime(b + t*d), d++; if (d%10==7, d++)); write("b065581.txt", n, " ", b + t*d) ) } [From Harry J. Smith (hjsmithh(AT)sbcglobal.net), Oct 23 2009]

CROSSREFS

Cf. A037067, A065590, A065821, A065580, A065582.

Sequence in context: A140031 A066413 A037067 * A062646 A009503 A176072

Adjacent sequences:  A065578 A065579 A065580 * A065582 A065583 A065584

KEYWORD

nonn,base

AUTHOR

Robert G. Wilson v (rgwv(AT)rgwv.com), Nov 28 2001

Lookup | Welcome | Wiki | Register | Music | Plot 2 | Demos | Index | Browse | More | WebCam
Contribute new seq. or comment | Format | Transforms | Puzzles | Hot | Classics
Recent Additions | More pages | Superseeker | Maintained by The OEIS Foundation Inc.

Content is available under The OEIS End-User License Agreement .

Last modified February 15 16:56 EST 2012. Contains 205825 sequences.