OFFSET
1,1
MATHEMATICA
Sort[Select[Flatten[Table[FromDigits[Join[{n}, PadRight[{}, k, 8], {n-1}]], {n, 2, 8, 2}, {k, 50}]], PrimeQ]] (* Harvey P. Dale, Mar 08 2023 *)
PROG
(PARI) n10np1(n, d) = { local(x, y, k); for(x=1, n, for(k=1, 8, y=10^(x+1)*k+floor(10^x*d/9)*10+k-1; if(isprime(y), print1(y", ")) ) ) }
CROSSREFS
KEYWORD
easy,nonn,base
AUTHOR
Cino Hilliard, Jul 11 2005
STATUS
approved