Let P(x)=x4038+x2019+1. Which of the following polynomials is a factor of P(x)?
x2−x+1
x2+x+1
x4+1
x6−x3+1
x6+x3+1