Perfect power check
$num
Checks whether num is a perfect power.
num
A GMP object, an int or a numeric string.
Returns true if num is a perfect power, false otherwise.
true
false