If K is an integer, what is the smaller: possible value of k such that 1040 is the square of an integer?

Answer: 
65
If K is an integer, what is the smaller: possible value of k such that 1040 is the square of an integer?