power-of-x-positivity-guard

Status: IN

All three power-of-X solutions (two, three, four) share an `n > 0` guard as their first short-circuit condition, since no non-positive integer is a power of any positive base — and each would fail differently without it (false positive for zero in power-of-two, ZeroDivisionError in power-of-three).

Source: entries/2026/06/06/power-of-two-solution.md

JSON