OFFSET
0,1
EXAMPLE
a(6) = 29 and 66666629 is prime.
MAPLE
a:= proc(n) local d, h, s;
s:= parse(cat(0, n$n));
for d from 0 do
for h to 10^d-1 do
if isprime(s+h) then return h fi
od:
s:= s*10;
od
end:
seq(a(n), n=0..75); # Alois P. Heinz, Feb 11 2021
CROSSREFS
KEYWORD
base,nonn
AUTHOR
Amarnath Murthy, Oct 27 2003
EXTENSIONS
More terms from Ray Chandler, Nov 01 2003
a(0)=2 prepended by Alois P. Heinz, Feb 11 2021
STATUS
approved