Skip to main content
Admissions guidance, study banks, and career tools โ€” get started on Shalyam

Ugly Number II

Ugly numbers have only 2, 3 and 5 as prime factors (1 is ugly). Print the n-th ugly number.

Constraints

1 <= n <= 1690

Discussion

No discussions yet.

Rewards ยท v2.1

Join Shalyam Newsletter

Get exclusive insights with every issue: education, research and innovation news.

One email a week. Unsubscribe any time.