career_cup_10_7

Design an algorithm to find the kth number such that the only prime
factors are 3, 5, and 7.