
23 is a prime number, therefore there are two possibilities:

or


Now, we check if any of these solutions is also a solution to the second equation:

Therefore, 3 is not a solution.

Therefore, 4 is a solution.


We know that
and
, therefore there isn't any
, for which
, so there's no solution.
So, the only solution is
.