func n_divisors(n, from=1) { from..Inf -> first_by { .sigma0 == n } } with (1) { |from| say 15.of { from = n_divisors(_+1, from) } }
[1, 2, 4, 6, 16, 18, 64, 66, 100, 112, 1024, 1035, 4096, 4288, 4624]
Last updated 4 years ago