OFFSET
1,1
EXAMPLE
The first digit, 1, is not prime.
The second digit, 4, cannot terminate any prime.
The third digit, 1, is not prime, but 41 is, so a(1) = 41. 141 is not prime, so it is not in the sequence.
PROG
(PARI) v=[1, 4, 1, 4, 2, 1, 3, 5, 6, 2, 3, 7, 3, 0, 9, 5, 0, 4, 8, 8, 0, 1, 6, 8, 8, 7, 2, 4, 2, 0, 9, 6, 9]
for(n=1, #v, x=0; p=1; forstep(k=n, 1, -1, x+=p*v[k]; p*=10; if(v[k]&&isprime(x), print1(x", "))))
CROSSREFS
KEYWORD
nonn,base
AUTHOR
Franklin T. Adams-Watters, Oct 21 2011
STATUS
approved