难度:easy
Write a program to check whether a given number is an ugly number.
Ugly numbers are positive numbers whose prime factors only include 2, 3, 5. For example, 6,
8 are ugly while 14 is not ugly since it includes another prime factor 7.
Note that 1 is typically treated as an ugly number.
中间部分是我自己写的,超时了,参考别人写出。用for 和while叠套,让给定数字分别被2,3,5除尽,如果最后为1,则被判定为ugly number。