A positive integer n is said to be a perfect power if there exist two positive integers a and b ≥ 2 such that n = ab .
Determine what the a,b pair n a perfect power, otherwise, return the pair 0,n. As an examples: 2^2 is 4 2^3 is 8 3^2 is 9 2^4 is 16 I did a search at jsoftware.com on "perfect power" and did not find anything. any suggestions would be appreciated. thanks ---------------------------------------------------------------------- For information about J forums see http://www.jsoftware.com/forums.htm
