PUMaC 2014 Team Problem 6

Find the sum of positive integer solutions of x for \frac{x^{2}}{1716-x}=p, where p is a prime. (If there are no solution, answer 0.)