OFFSET
1,1
COMMENTS
Primes p such that if q and r are the next two primes, both concatenations p||q||r and r||q||p have three prime factors, counted with multiplicity.
LINKS
Robert Israel, Table of n, a(n) for n = 1..10000
EXAMPLE
a(2) = 47 is a term because 47, 53, 59 are consecutive primes and both 475359 = 3 * 193 * 821 and 595347 = 3 * 191 * 1039 have three prime factors, counted with multiplicity.
MAPLE
cat3:= proc(a, b, c)
(a*10^(1+ilog10(b))+b)*10^(1+ilog10(c))+c
end proc;
R:= NULL: count:= 0: a:= 2: b:= 3: c:= 5:
for i from 1 while count < 100 do
a:= b; b:= c; c:= nextprime(c);
if numtheory:-bigomega(cat3(a, b, c)) = 3 and numtheory:-bigomega(cat3(c, b, a)) = 3 then
R:= R, a; count:= count+1;
fi
od:
R;
MATHEMATICA
Select[Prime[Range[612]], PrimeOmega[FromDigits[Join[IntegerDigits[#], IntegerDigits[NextPrime[#]], IntegerDigits[NextPrime[#, 2]]]]]==3&&PrimeOmega[FromDigits[Join[IntegerDigits[NextPrime[#, 2]], IntegerDigits[NextPrime[#, 1]], IntegerDigits[#]]]]==3&] (* James C. McMahon, Jun 20 2025 *)
CROSSREFS
KEYWORD
nonn,base
AUTHOR
Will Gosnell and Robert Israel, Jun 05 2025
STATUS
approved
