OFFSET
1,1
LINKS
Amiram Eldar, Table of n, a(n) for n = 1..10000
EXAMPLE
For p = 131, the next prime number is 137. The numbers between 131 and 137 and the prime factors are respectively 132 { 2, 3, 11 }, 133 { 7, 19 }, 134 { 2, 67 }, 135 { 3, 5 }, 136 { 2, 17 }. The set of prime divisors is { 2, 3, 5, 7, 11, 17, 19, 67 } and has 8 elements, so 131 is a term. - Marius A. Burtea, Sep 26 2019
MATHEMATICA
Select[Partition[Prime[Range[1000]], 2, 1], Length[Union[ Flatten[ FactorInteger[ Range[ #[[1]]+1, #[[2]]-1]], 1][[All, 1]]]]==8&][[All, 1]] (* Harvey P. Dale, Dec 26 2019 *)
PROG
(Magma) a:=[]; for p in PrimesInInterval(2, 7000) do b:={}; for s in [p..NextPrime(p)-1] do if not IsPrime(s) then b:=b join Set(PrimeDivisors(s)); end if; end for; if #Set(b) eq 8 then Append(~a, p); end if; end for; a; // Marius A. Burtea, Sep 26 2019
CROSSREFS
KEYWORD
nonn
AUTHOR
Amarnath Murthy, Sep 26 2002
EXTENSIONS
More terms from Matthew Conroy, Apr 30 2003
STATUS
approved