OFFSET
1,2
COMMENTS
If it exists, a(21) > 400000. - Hugo Pfoertner, Sep 07 2021
a(21) > 3*10^6 if it exists. - Chai Wah Wu, Nov 24 2021
PROG
(Python)
from math import gcd
A347314_list, nset, m, c, j, i = [1], {1}, 2, 0, 2, 1
for _ in range(10**4):
i += 1
k = m
while k == j or gcd(k, j) == 1 or k in nset:
k += 1
if i == k:
A347314_list.append(i)
j = k + 1
nset.add(k)
while m in nset:
m += 1 # Chai Wah Wu, Sep 07 2021
CROSSREFS
KEYWORD
nonn,more
AUTHOR
N. J. A. Sloane, Sep 07 2021
EXTENSIONS
a(20) from Hugo Pfoertner, Sep 07 2021
STATUS
approved