← Paytm questions

Ugly Numbers

Filed under Paytm · Also reported at Walmart

Write a function to find the nth ugly number. Ugly numbers are positive numbers whose prime factors only include 2, 3, and 5. By convention, 1 is included.

You've read your 3 free write-ups

Sign up free to keep reading. Your account opens the first 10 questions of every company.

Related Paytm questions

Collected from public candidate posts and coding forums. Updated Nov 2026.