Sunday, March 30, 2014

Find the kth number with prime factors 3, 5 and 7

Problem
Design an algorithm to find the kth number such that the only prime factors are 3, 5, and 7.
Solution
We have already solved the similar problem for ugly numbers, where the factor was 2,3 5 here.
 

0 comments:

Post a Comment