OFFSET
1,1
COMMENTS
We have a(2)=5 because 5 is the smallest prime (ahead of 11,19,19,23,29,...) that is a product of two distinct primes when a 1 is prepended.
PROG
(PARI) {len10(n) = ceil(log(n+1)/log(10))}
{r(n, p, d)=local(q); if(d==0, k=n-10^(len10(n)-1); if(len10(k)==len10(n)-1 && isprime(k), m=n); return); q=nextprime(p+1); while(n*q^d<m, r(n*q, q, d-1); q=nextprime(q+1))}
{A105526(d) = M=3^d; while(1, m=M; r(1, 2, d); if(m!=M, return(m%10^(len10(m)-1))); M*=2)} \\ Max Alekseyev, Apr 28 2005
CROSSREFS
KEYWORD
nonn,base,changed
AUTHOR
Lekraj Beedassy, Apr 11 2005
EXTENSIONS
a(5)-a(8) from Ray Chandler, Apr 21 2005
More terms from Max Alekseyev, Apr 28 2005
STATUS
approved