OFFSET
1,1
LINKS
Harry J. Smith, Table of n, a(n) for n = 1..1000
EXAMPLE
MATHEMATICA
Table[Block[{q = 3, d = IntegerDigits[p], k}, While[! PrimeQ@ Set[k, FromDigits[Join[d, IntegerDigits[q]]]], q = NextPrime@ q]; k], {p, Prime@ Range@ 43}] (* Michael De Vlieger, Jun 19 2018 *)
PROG
(PARI) digitsIn(x)= { local(d); if (x==0, return(1)); d=1 + log(x)\log(10); if (10^d == x, d++, if (10^(d-1) > x, d--)); return(d) }
Concat(a, b)= { return(a*10^digitsIn(b) + b) }
{ for (n = 1, 1000, p=prime(n); q=2; while(!isprime(c=Concat(p, q)), q=nextprime(q + 1)); write("b066064.txt", n, " ", c) ) } \\ Harry J. Smith, Nov 09 2009
CROSSREFS
KEYWORD
base,nonn
AUTHOR
Reinhard Zumkeller, Dec 01 2001
STATUS
approved