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
-
Select every other element of a vector
37193 Solvers
-
Return the 3n+1 sequence for n
8534 Solvers
-
320 Solvers
-
We love vectorized solutions. Problem 1 : remove the row average.
896 Solvers
-
Replace Nonzero Numbers with 1
457 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!