OFFSET
1,2
LINKS
Chai Wah Wu, Table of n, a(n) for n = 1..54
PROG
(Python)
from math import gcd
A347307_list, nset, m, c, j = [1], {1}, 2, 0, 2
for _ in range(10**4):
k = m
while k == j or gcd(k, j) == 1 or k in nset:
k += 1
if k > c:
c = k
A347307_list.append(k)
j = k + 1
nset.add(k)
while m in nset:
m += 1 # Chai Wah Wu, Sep 01 2021
CROSSREFS
KEYWORD
nonn
AUTHOR
N. J. A. Sloane, Sep 01 2021
EXTENSIONS
a(23)-a(40) from Alois P. Heinz, Sep 01 2021
STATUS
approved