The curve with equation y=x2+px+11y = x^2 + px + 11y=x2+px+11 where p p\,p is a positive constant, has a minimum value of 2.
Find the value of ppp.