|
|
A112766
|
|
Smallest prime of the form 8 followed by n copies of k.
|
|
1
|
|
|
83, 811, 8111, 839393939, 81313131313, 8212121212121, 83333333, 89191919191919191, 8777777777, 829292929292929292929, 85151515151515151515151, 8313131313131313131313131, 811111111111111111111111111, 81313131313131313131313131313
(list;
graph;
refs;
listen;
history;
text;
internal format)
|
|
|
OFFSET
|
1,1
|
|
LINKS
|
|
|
EXAMPLE
|
a(3) = 8111, 8 followed by three copies of 1.
|
|
MATHEMATICA
|
SelectFirst[#, PrimeQ]&/@Table[FromDigits[PadRight[{8}, IntegerLength[k] n+1, Reverse[IntegerDigits[k]]]], {n, 30}, {k, 9999}] (* Harvey P. Dale, Feb 02 2020 *)
|
|
PROG
|
(PARI) for(n=1, 100, np=1; k=1; while(np, s="8"; for(i=1, n, s=concat(s, Str(k))); m=eval(s); if(isprime(m), print1(m", "); np=0, k++))) - Herman Jamke (hermanjamke(AT)fastmail.fm), May 01 2008
|
|
CROSSREFS
|
|
|
KEYWORD
|
base,nonn,dumb
|
|
AUTHOR
|
|
|
EXTENSIONS
|
More terms from Herman Jamke (hermanjamke(AT)fastmail.fm), May 01 2008
|
|
STATUS
|
approved
|
|
|
|