The exceptional set for the sum of a prime and a square