A number that is a perfect square never ends in 2, 3, 7 or 8. If your number ends in any of those numbers, you can stop here because your number is not a perfect square. Obtain the digital root of the number. The digital root essentially is the sum of all of the digits.