Reduce square root to simplest radical form

Reduce square root to simplest radical form

The function redsqrt(n) prints out the most reduced form of the square root of n. It calls on another function perfsq(n), which ...