For example, if we have $36$, is there an algorithm to determine that it may equal $10^2-8^2$? What if we blow up the number to something like $492709612098$? Can it be written as the difference of two squares? If so, how do we know?
Also, does it matter if the number in question has more or fewer factors?
EDIT: I WANT TO KNOW THE ALGORITHM, AND NOT WHETHER A NUMBER MAY BE WRITTEN AS SUCH. BASICALLY I WANT TO KNOW IF THERE IS AN ALGORITHM WHERE YOU CAN INPUT NUMBER $N$ AND GET THE ADDEND SQUARE NUMBER $X$.