Enable Javascript in your browser and then refresh this page, for a much enhanced experience.
First solution in 3rd party category for Checking Perfect Power by eugene100372
from sympy import perfect_power as pf
def perfect_power(n: int) -> bool:
return bool(pf(n))
Oct. 11, 2023
Comments: