Php/docs/function.gmp-perfect-power
From Get docs
gmp_perfect_power
(PHP 7 >= 7.3.0)
gmp_perfect_power — Perfect power check
Parameters
a
- Either a GMP number resource in PHP 5.5 and earlier, a GMP object in PHP 5.6 and later, or a numeric string provided that it is possible to convert the latter to a number.
Return Values
Returns TRUE
if a
is a perfect power, FALSE
otherwise.