OFFSET
1,4
LINKS
Alois P. Heinz, Table of n, a(n) for n = 1..10000
EXAMPLE
a(5)=3 since prime(5)=11 and 11311 is prime.
MAPLE
read("transforms") ;
A181608 := proc(n) local p, k, l ; if n= 1 or n = 3 then return 0 ; end if; p := ithprime(n) ; for k from 0 do l := digcat2(digcat2(p, k), p) ; if isprime(%) then return k; end if; end do: end proc: # R. J. Mathar, Jan 30 2011
MATHEMATICA
Table[p = Prime[n]; If[Mod[10, p] == 0, 0, k = 0; While[!PrimeQ[FromDigits[Join[IntegerDigits[p], IntegerDigits[k], IntegerDigits[p]]]], k++]; k], {n, 109}]
CROSSREFS
KEYWORD
nonn,base
AUTHOR
Carmine Suriano, Jan 30 2011
STATUS
approved