Ugly numbers - 02 - MATLAB Cody - MATLAB Central

Problem 45297. Ugly numbers - 02

Difficulty:Rate

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

68.42% Correct | 31.58% Incorrect
Last Solution submitted on Aug 29, 2024

Problem Comments

Solution Comments

Show comments
R2025a Pre-release highlights
This topic is for discussing highlights to the current R2025a Pre-release.
13
5

Problem Recent Solvers19

Suggested Problems

More from this Author165

Problem Tags

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!
Go to top of page