k-th smallest such number (counting from one) as a string.k=5 → '74'
In increasing order: 4, 7, 44, 47, 74, ... The fifth one is 74.
k=2 → '7'
The second smallest is 7.
k=14 → '777'
Six numbers have one or two digits, then come eight three-digit ones; the 14th is the last of those, 777.
k=5
'74'
Run checks the first 3 tests in your browser. Submit checks all 100 tests on the server, hidden ones included.