OFFSET
1,1
COMMENTS
All the terms are divisible by 6.
LINKS
Robert Israel, Table of n, a(n) for n = 1..10000
EXAMPLE
43890 is in the sequence a term because 43890=2*3*5*7*11*19 is the product of six distinct primes and 43889, 43891 are a couple of twin primes.
51870 is in the sequence a term because 51870=2*3*5*7*13*19 is the product of six distinct primes and 51869, 51871 are a couple of twin primes.
MAPLE
with(priqueue):
initialize(pq):
insert([-2*3*5*7*11*13, 2, 2, 3, 5, 7, 11, 13], pq);
R:= NULL: count:= 0:
while count < 100 do
t:= extract(pq);
x:= -t[1];
if isprime(x-1) and isprime(x+1) then
count:= count+1; R:= R, x
fi;
for i from t[2] to 5 do
p:= nextprime(t[8]);
insert ([t[1] * p/t[i+3], i, seq(t[j], j=3..i+2), seq(t[j], j=i+4..8), p], pq);
od;
od:
R; # Robert Israel, Nov 16 2025
MATHEMATICA
Select[6 * Range[10^5], PrimeQ[#-1] && PrimeQ[#+1] && FactorInteger[#][[;; , 2]] == {1, 1, 1, 1, 1, 1} &] (* Amiram Eldar, Nov 16 2024 *)
CROSSREFS
KEYWORD
nonn
AUTHOR
Massimo Kofler, Nov 16 2024
STATUS
approved
