Given number 40. Any number can be expressed as a product of prime numbers. From the above picture finally we got the square root of 104976.