A lovely proof
This is a proof that I’ve seen, not one I’ve come up with; I don’t have a reference, but I imagine it’s relatively well-known. It’s not the usual proof, but I like this one because it doesn’t rely on an infinite regress.
The following works for 2, but also (with some work) for any integer that isn’t a perfect square, or (with some more) for any rational number that isn’t one square divided by another.
Proposition:
Proof: Suppose for the sake of contradiction that
Then
In the prime factorisation of