OFFSET
1,2
LINKS
Harvey P. Dale, Table of n, a(n) for n = 1..1000
EXAMPLE
113, 3217, 1733 etc. are primes. 3217 is the prime obtained by placing 2 in the second gap.
MATHEMATICA
nxt[{n_, a_}]:=Module[{k=1, c=a*10^IntegerLength[n]+n}, While[!PrimeQ[c*10^IntegerLength[k]+k], k++]; {n+1, k}]; NestList[nxt, {1, 1}, 100][[;; , 2]] (* Harvey P. Dale, Jul 11 2025 *)
CROSSREFS
KEYWORD
base,nonn
AUTHOR
Amarnath Murthy, Dec 02 2003
EXTENSIONS
More terms from David Wasserman, Nov 16 2005
STATUS
approved
