| Mar | APR | May |
| 16 | ||
| 2017 | 2018 | 2019 |
COLLECTED BY
Collection: Alexa Crawls
Action Success!
Action Error!
ugly number`.
Ugly numbers are positive numbers whose prime factors only include 2, 3, 5. For example, 6, 8are ugly while 14is not ugly since it includes another prime factor 7.
1is typically treated as an ugly number.
Example
Given num = 8return true
Given num = 14return false
Tags
Mathematics
Related Problems
Medium
Super Ugly Number
28 %
Easy
Happy Number
32 %
Login to try Notes!
Login to Test!
Action Success!
Action Error!