Could somebody tell me why each of the factor components must be equal to one?
Could somebody tell me why each of the factor components must be equal to one?
Since p = (x^2 + x + 1)(x - 1), and both of those factors are integers, if both factors were not 1, then we would have demonstrated a factoring of p; therefore p would be composite.
If you wanted to be super formal, you would have to deal with the possibility that the factors were -1, but that is more of an uninteresting technicality.
> 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.