Problem:Find all primes $p$ such that $p^3-4p+9=x^2$, where $x$ is a positive integer.
My Attempt: I have made the following observations while trying tot solve this problem:
- $p=2$ yields $x=3$.
- For $p>2$ the following is true: $x^2\equiv 0\pmod 4$ and $p\equiv 3\pmod 4.$
- It seems that $p=2,7$ and $11$ are the only primme numbers that satisfy the conditions of this problem. Below are the values of $p^3-4p+9$ evaluated for $1\leq p\leq 100.$
9
24
114
324
1296
2154
4854
6792
12084
24282
29676
50514
68766
79344
103644
148674
205152
226746
300504
357636
388734
492732
571464
704622
912294
I would like to know how one can prove that $p=2,7$ and $11$ are the only solutions to the above-mentioned equation.