Question 7Determine the largest prime $p$ for which integers $x,y$ exist with $p+1=2x^2$ and $p^2+1=2y^2$.