OFFSET
1,1
COMMENTS
LINKS
Charles R Greathouse IV, Table of n, a(n) for n = 1..10000
EXAMPLE
1171 is a prime which is the concatenation of 1, 17 and 1.
MATHEMATICA
Select[Map[FromDigits@ Flatten@ {1, IntegerDigits@ Prime@ #, 1} &, Range@ 200], PrimeQ] (* Michael De Vlieger, Mar 15 2016 *)
Select[FromDigits[Flatten[IntegerDigits/@Join[{1}, #, {1}]]]&/@Prime[ Range[ 200]], PrimeQ] (* Harvey P. Dale, Jul 26 2016 *)
PROG
(PARI) lista(nn) = forprime(p=2, nn, if(isprime(P=eval(Str(1, p, 1))), print1(P, ", "))); \\ Altug Alkan, Mar 13 2016
(PARI) is(n)=my(d=digits(n)); isprime(n) && d[1]==1 && #d>2 && d[2] && d[#d]==1 && isprime(fromdigits(d[2..#d-1])) \\ Charles R Greathouse IV, Mar 15 2016
CROSSREFS
KEYWORD
nonn,base
AUTHOR
Emre APARI, Mar 13 2016
STATUS
approved