The only prime of the form n^2-4 is 5?

  • Thread starter Thread starter Math100
  • Start date Start date
  • Tags Tags
    Form Prime
Click For Summary
The discussion presents a proof that the only prime number of the form n^2-4 is 5. It establishes that for a prime p expressed as n^2-4, the factors n+2 and n-2 must be considered. Since n+2 is always greater than 1 for natural numbers, it concludes that n-2 must equal 1, leading to n being 3. Substituting n back into the equation confirms that p equals 5. The proof is affirmed by multiple participants as correct.
Math100
Messages
816
Reaction score
229
Homework Statement
Prove the assertion below:
The only prime of the form n^2-4 is 5.
Relevant Equations
None.
Proof: Suppose p is a prime such that p=n^2-4.
Then we have p=n^2-4=(n+2)(n-2).
Note that prime number is a number that has only two factors,
1 and the number itself.
Since n+2>1 for ##\forall n \in \mathbb{N}##,
it follows that n-2=1, and so n=1+2=3.
Thus p=n^2-4=3^2-4
=9-4
=5.
Therefore, the only prime of the form n^2-4 is 5.

Above is my proof for this assertion. Can anyone please verify/review it and see if it's correct?
 
  • Like
Likes DaveE, FactChecker and fresh_42
Physics news on Phys.org
Same here. Correct.
 
fresh_42 said:
Same here. Correct.
Thank you!
 
First, I tried to show that ##f_n## converges uniformly on ##[0,2\pi]##, which is true since ##f_n \rightarrow 0## for ##n \rightarrow \infty## and ##\sigma_n=\mathrm{sup}\left| \frac{\sin\left(\frac{n^2}{n+\frac 15}x\right)}{n^{x^2-3x+3}} \right| \leq \frac{1}{|n^{x^2-3x+3}|} \leq \frac{1}{n^{\frac 34}}\rightarrow 0##. I can't use neither Leibnitz's test nor Abel's test. For Dirichlet's test I would need to show, that ##\sin\left(\frac{n^2}{n+\frac 15}x \right)## has partialy bounded sums...