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
Join Cody Contest 2025 — Have Fun and Win Prizes!
...
We’re excited to invite you to Cody Contest 2025! 🎉 Pick a team,...
Dive Into Hands-On Learning at MATLAB EXPO 2025 – Register Now!
Get ready to roll up your sleeves at MATLAB EXPO 2025 –...
0

Problem Recent Solvers19

Suggested Problems

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!