ugly-number-zero-guard

Status: IN

`is_ugly(0)` returns `False` and never enters the division loop; without the `n <= 0` guard, `0 % 2 == 0` would loop forever

Source: entries/2026/06/06/ugly-number-solution.md

JSON