Generate ugly numbers
Filed under Samsung
The question
Provide an approach and write code to find ugly numbers (numbers whose only prime factors are 2, 3, or 5).
No write-up yet. Related questions below have one.
Related Samsung questions
Collected from public candidate posts and coding forums. Updated Nov 2026.