While reading an introductory text on model theory, I found it interesting that one can reformulate the famous conjectures about twin primes and Mersenne primes in terms of non-standard models of arithmetic:
The twin prime conjecture is true if and only if there is some non-standard model of arithmetic $\mathcal{M}$ and at least one pair of non-standard twin primes in $\mathcal{M}$.
There are infinitely many Mersenne primes if and only if there is a non-standard Mersenne prime.
My question is this: Are there any examples of longstanding open questions in number theory whose eventual solution took the above form, that is, as an implication of some feature of a non-standard model of arithmetic? I would be particularly interested to know of any instances where the only known proof of a certain result makes use of this strategy. Thanks in advance.