login
A348247
Where prime(n) first appears in A307730.
2
2, 4, 47, 52, 1374, 1385, 3738, 3755, 6680, 6703, 84626, 84657, 89480, 89521, 91832, 91879, 173092, 173151, 192882, 192949, 524587, 524660, 865301, 865384, 876543, 876640, 890479, 890582, 904273, 904382, 918859, 918986, 1628979, 1629116, 1647107, 1647256, 1666775
OFFSET
1,1
LINKS
PROG
(Python)
from collections import Counter
from sympy import prime
def A348247(n):
c, b, p, i = Counter(), 1, prime(n), 1
while True:
k, kb = 1, b
while c[kb] >= kb:
k += 1
kb += b
if kb == p:
return i
c[kb] += 1
b = k
i += 1 # Chai Wah Wu, Oct 21 2021
CROSSREFS
KEYWORD
nonn
AUTHOR
N. J. A. Sloane, Oct 17 2021
EXTENSIONS
More terms from Chai Wah Wu, Oct 21 2021
STATUS
approved