for k in (1..5) { var x = 10 say k.almost_primes(x.nth_almost_prime(k)) }