OFFSET
1,1
COMMENTS
a(n) > 40000 or 0 for n = 2, 18, and 44.
EXAMPLE
For n = 3, prime(3) = 5. 57 is not prime. 5711 is prime. Since 5711 = 5//7//11, a(3) = 11.
PROG
(PARI) a(n)=s=Str(prime(n)); forprime(p=prime(n)+1, 40000, s=concat(s, p); if(ispseudoprime(eval(s)), return(p))); 0
for(n=1, 50, print1(a(n), ", "))
CROSSREFS
KEYWORD
nonn,base
AUTHOR
Derek Orr, Nov 05 2014
STATUS
approved