login

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 61st year, we have over 378,000 sequences, and we’ve reached 11,000 citations (which often say “discovered thanks to the OEIS”).

A108822
Primes such that the outer 2 digits are n and n+1 and all inner digits are 5, where 0 < n < 9.
0
859, 65557, 855555559, 6555555557, 855555555555555559, 85555555555555555559, 6555555555555555555557, 85555555555555555555555559, 85555555555555555555555555555555555555559, 6555555555555555555555555555555555555555555555557
OFFSET
1,1
FORMULA
a(x) = 10^(x+1)*n+floor(10^x*5/9)*10+n+1. Output if a(x) is prime.
MATHEMATICA
Select[Sort[Flatten[Table[FromDigits[Join[{n}, PadRight[{}, i, 5], {n+1}]], {n, {2, 6, 8}}, {i, 50}]]], PrimeQ] (* Harvey P. Dale, Aug 02 2015 *)
PROG
(PARI) n10np1(n) = { local(x, y, k); for(x=1, n, for(k=1, 8, y=10^(x+1)*k+floor(10^x*5/9)*10+k+1; if(isprime(y), print1(y", ")) ) ) }
CROSSREFS
Sequence in context: A345801 A183628 A187281 * A278156 A249461 A292626
KEYWORD
easy,nonn,base
AUTHOR
Cino Hilliard, Jul 11 2005
EXTENSIONS
One more term (a(10)) from Harvey P. Dale, Aug 02 2015
STATUS
approved