PUMaC 2010 Algebra B Problem 2

Let p(x)=x^{2}+x+1. Find the fourth smallest prime q such that p(x) has a root \bmod~ q.