p. If q is prime and the equation x ^ 2-px + q = 0 has a positive integer root, then p =, Q=

p. If q is prime and the equation x ^ 2-px + q = 0 has a positive integer root, then p =, Q=

Let two positive integer roots be: x1, X2, then
x1+x2=p,x1x2=q
Because q is prime,
So X1 = 1, X2 = q; or x2 = 1, X1 = Q
In short, X1 + x2 = 1 + q = P,
If q is odd prime, then 1 + Q is even, that is, P is even and P > 2, which is contradictory to P being prime
So q = 2, P = 3