Let p be the prime number.
Then
[tex]5Also,
[tex]\begin{gathered} p^2-2\text{ is a prime such that} \\ 40The first prime number in the interval (5,23) is 7.
Also,
[tex]\begin{gathered} 7^2=49 \\ \text{and 7}^2-2=49-2=47 \\ \text{Thus} \\ 40<7^2-2<50 \\ \end{gathered}[/tex]Therefore the number is 7