Checking Whether nth Root of a Number is a Surd or Not