Ugly numbers are those whose prime factors are 2, 3 or 5.
find the nth ugly number.
n.b. unlike the previous problem,trivial solution might not work in this case.
Solution Stats
Problem Comments
Solution Comments
Show comments
Loading...
Problem Recent Solvers22
Suggested Problems
-
Given an unsigned integer x, find the largest y by rearranging the bits in x
2081 Solvers
-
1543 Solvers
-
Replace all zeros and NaNs in a matrix with the string 'error'
104 Solvers
-
Sum the numbers on the main diagonal
620 Solvers
-
Compute LOG(1+X) in natural log
264 Solvers
More from this Author174
Problem Tags
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!