powered by
Tests if a given number v is prime power and returns the base prime and the power or -1
isPrimePower(N)
is the number to be tested for primality
logical TRUE or FALSE
tests if a given number N gives a prime Q when raised to the power Q=N**1/i for all i such that Q>1
# NOT RUN { isPrimePower(10000) # }
Run the code above in your browser using DataLab