Ugly Number Solutions in GoNumber 263Difficulty EasyAcceptance 41.6%Link LeetCodeOther languages C++SolutionsGo solution by halfrost/LeetCode-Gopackage leetcode func isUgly(num int) bool { for i := 2; i < 6 && num > 0; i++ { for num%i == 0 { num /= i } } return num == 1}package leetcode func isUgly(num int) bool { for i := 2; i < 6 && num > 0; i++ { for num%i == 0 { num /= i } } return num == 1 }