OFFSET
1,2
COMMENTS
The unsorted version is A372517.
LINKS
Wikipedia, Hamming weight.
FORMULA
prime(a(n)) = A372685(n).
EXAMPLE
The sequence contains 9 because the first 9 terms of A014499 are 1, 2, 2, 3, 3, 3, 2, 3, 4, and the last of these is the first position of 4.
MATHEMATICA
First/@GatherBy[Range[1000], DigitCount[Prime[#], 2, 1]&]
CROSSREFS
KEYWORD
nonn,base
AUTHOR
Gus Wiseman, May 14 2024
EXTENSIONS
a(26)-a(36) from Pontus von Brömssen, May 15 2024
STATUS
approved