Ugly Numbers

1

1 votes
Problem

Ugly numbers are numbers whose only prime factors are 2, 3 or 5. The sequence 1, 2, 3, 4, 5, 6, 8, 9, 10, 12, 15, … shows the first 11 ugly numbers. By convention, 1 is included.

Given a number n, the task is to find n’th Ugly number.

Time Limit: 5
Memory Limit: 256
Source Limit:
Editor Image

?