OFFSET
1,1
LINKS
Robert Israel, Table of n, a(n) for n = 1..10000
EXAMPLE
a(3) = 233 is a term because 233 is prime and is the concatenation of the primes 2, 3 and 3, of which two are equal.
MAPLE
filter:= proc(n) local m, i, j, ni, nj, np, n3;
if not isprime(n) then return false fi;
m:= ilog10(n);
for i from 1 to m-1 do
ni:= n mod 10^i;
if ni < 10^(i-1) or not isprime(ni) then next fi;
np:= (n-ni)/10^i;
for j from 1 to m-i do
nj:= np mod 10^j;
if nj < 10^(j-1) then next fi;
n3:= (np-nj)/10^j;
if nops({ni, nj, n3})<3 and isprime(nj) and isprime(n3) then return true fi;
od od;
false
end proc:
select(filter, [seq(i, i=3..10000, 2)]);
CROSSREFS
KEYWORD
nonn
AUTHOR
Robert Israel, Apr 28 2025
STATUS
approved
