In plain text, it is customary to write n^2 for n^{2}.

This seems true. If 3 does not divide n^2 + 2, then n^2 + 2 = 3k + 1 or n^2 + 2 = 3k + 2 for some k. In the latter case, n is divisible by 3. Suppose that n^2 = 3k - 1 and, towards contradiction, assume that n is prime. Then n = 6m + 1 or n = 6m - 1 for some integer m as described here. Try to derive a contradiction.

Maybe there is an easier proof...