Leetcode. 263. Ugly NumberThe function `isUgly` determines if a number is an ugly number based on its prime factors: 2, 3, and 5.