## This is a totally naive brute force check for integer solutions,
## just running through x and y within a specified range (TESTRANGE)
TESTRANGE = 10 # how far should we go
totalcount = 0 # so far we haven't found a thing
for x in range(-TESTRANGE,TESTRANGE+1):
for y in range(-TESTRANGE,TESTRANGE+1):
# HERE is where the equation enters
s = (y^2 -(x^3 + 16)) # difference between both sides of the equation
if (s == 0):
print("(", x, ",", y, ")") # print the solution
totalcount = totalcount + 1 # add one to the solution count
print("Found", totalcount, "solutions (for |x|,|y|<=", TESTRANGE, ").")