Divide the number by greatest divisible powers of 2, 3 and 5, if the number becomes 1 then it is an ugly number otherwise not.
- cpp
- bazel
- l.gcr.io/google/bazel:latest
sudo ./install.sh -u
sudo ./install.sh -d
sudo ./install.sh -h
[Source code] (https://www.geeksforgeeks.org/ugly-numbers/)