ah good catch on the typo, just fixed it
> For $ p $ to be prime either $ x^2 + x + 1 = 1 $ or $ x - 1 = 1 $.
That’s not quite true. In general, if p is prime and p=a·b for integers a and b, then at least one of a and b is 1 or -1. The rest of the proof still works since, as you say, x != 0, so x + 1 != -1.
> then at least one of a and b is 1 or -1
I think you mean exactly one of a and b is 1 or -1
You really do have to consider negative factors.