Skip to main content

Prime power

Checks if a number is a prime power.

Syntax

prime_power(Integer)

Description

Given an integer n, returns false if the input is not a prime power. If indeed it is a prime power, returns a list with two elements: the first one is the prime and the second one is the power.

arithmetic.prime_power.calc.png