value. Return True if it is positive and its prime factorization uses only 2, 3 and 5 (each any number of times, including zero). Otherwise return False.
The number 1 qualifies, since it has no prime factors. Zero and negative numbers never qualify.value=60 → True
60 = 2 · 2 · 3 · 5, only the allowed factors.
value=1 → True
1 has no prime factors at all, so the answer is True.
value=22 → False
22 = 2 · 11, and 11 is not on the list.
value=60
True
Run checks the first 3 tests in your browser. Submit checks all 64 tests on the server, hidden ones included.