OFFSET
1,1
COMMENTS
Erdős (1976) conjectured that there are infinitely many numbers with this property, but this remains unsolved.
LINKS
Chai Wah Wu, Table of n, a(n) for n = 1..10000
Thomas Bloom, Erdős Problem #932.
P. Erdős, Problems and results on number theoretic properties of consecutive integers and related questions. Proceedings of the Fifth Manitoba Conference on Numerical Mathematics (Univ. Manitoba, Winnipeg, Man., 1975) (1976), 25-44. See page 29.
Erdős problems database contributors, Erdős problems database. Maintained by Thomas Bloom and Terence Tao.
EXAMPLE
4 is a term because 8 and 9 are two numbers between prime(4) = 7 and prime(5) = 11 whose prime factors are all less than prime(5) - prime(4) = 4.
PROG
(Python)
from itertools import count, islice
from sympy import primerange, nextprime
def A387864_gen(): # generator of terms
p, q = 3, 5
for i in count(2):
plist, c = list(primerange(q-p)), 0
for n in range(p+1, q):
for r in plist:
while True:
a, b = divmod(n, r)
if not b:
n = a
else:
break
if n==1:
c += 1
if c > 1:
yield i
break
p, q = q, nextprime(q)
CROSSREFS
KEYWORD
nonn
AUTHOR
David Radcliffe, Sep 10 2025
STATUS
approved
