OFFSET
1,1
LINKS
Robert Israel, Table of n, a(n) for n = 1..10000
EXAMPLE
a(3) = 367373379 is a term because it is the concatenation of consecutive primes 367, 373 and 379 and is the product of three primes 3 * 19 * 6445147 such that 3 + 19 + 6445147 = 6445169 is prime.
MAPLE
tcat:= proc(a, b, c);
c + 10^(1+ilog10(c))*(b + 10^(1+ilog10(b))*a)
end proc:
R:= NULL: count:= 0:
q:= 2: r:= 3:
while count < 100 do
p:= q; q:= r; r:= nextprime(r);
x:= tcat(p, q, r);
F:= ifactors(x)[2];
if add(t[2], t=F) = 3 and isprime(add(t[1]*t[2], t=F)) then
count:= count+1; R:= R, x;
fi;
od:
R;
MATHEMATICA
tp[p_]:=FromDigits[Join[IntegerDigits/@{Prime[p], Prime[p+1], Prime[p+2]}//Flatten]]; Select[Array[tp, 530], PrimeOmega[#]==3&&PrimeQ[Total[First/@FactorInteger[#]]]&] (* James C. McMahon, Jul 20 2025 *)
CROSSREFS
KEYWORD
nonn,base
AUTHOR
Will Gosnell and Robert Israel, Jul 13 2025
STATUS
approved
