OFFSET
1,1
COMMENTS
This sequence is a variation of A337486; instead of adding to the set all the prime factors of the numbers that cannot be created from the current primes in the set, only add those primes that are missing from the set, i.e., only add enough primes so that the number could then be created from the set. See A337486 for further details.
EXAMPLE
a(1) = 6. As there are no primes initially in the set, the numbers 2, 3, 4, 5 cannot be created. These numbers add a 2, a 3, another 2 (only one extra 2 is added as 4 = 2*2 and one 2 is already in the set), and a 5. As there is now one 2 and one 3 the number 6 = 2*3 can be created. After 6 is created the set of primes now contains 2 and 5.
a(2) = 10. After 7, 8, 9, none of which can be created from the prime set, the prime set contains 2, 2, 2, 3, 3, 5, 7. Note 8 only added two extra 2's as one 2 was already in the set. As 2 and 5 are present 10 = 2*5 can be created, after which the set contains 2, 2, 3, 3, 7.
CROSSREFS
KEYWORD
nonn
AUTHOR
Scott R. Shannon, May 06 2022
STATUS
approved