pub fn is_perfect_power(number: i128) -> bool
Expand description

is_perfect_power function: Takes an i128 integer number as input and returns a boolean indicating whether number is a perfect power or not. The function calculates the square root of the input number, rounds it to the nearest integer value, and then checks if the result squared is equal to the original number. If they are equal, it returns true; otherwise, it returns false.