OFFSET
1,1
LINKS
Robert Israel, Table of n, a(n) for n = 1..10000
EXAMPLE
171317 is a prime which is the concatenation of 17, 13 and 17.
MAPLE
cat3:= proc(a, b, c) local alpha, beta;
beta:= ilog10(c)+1;
alpha:= beta + ilog10(b)+1;
10^alpha*a + 10^beta*b + c
end proc:
R:= NULL: count:= 0: p:= 2:
while count < 100 do
q:= p; p:= nextprime(p);
v:= cat3(p, q, p);
if isprime(v) then R:= R, v; count:= count+1;
fi
od:
R; # Robert Israel, Jul 01 2025
MATHEMATICA
Select[FromDigits[Flatten[IntegerDigits/@#]]&/@({Last[#], First[#], Last[#]} &/@Partition[Prime[Range[200]], 2, 1]), PrimeQ] (* Harvey P. Dale, Oct 25 2011 *)
CROSSREFS
KEYWORD
base,nonn
AUTHOR
Amarnath Murthy, Mar 02 2002
EXTENSIONS
More terms from Sascha Kurz, Mar 26 2002
More terms from Robert Israel, Jul 02 2025
STATUS
approved
