The integer is 11. De Morgan's law rewrites the condition as (p∧¬q)∨(r∧s): either x belongs to the displayed set and is not composite, or it is both a square and a prime.
No integer x≥2 is both a perfect square and prime. Of 8, 9, 10, 11 and 12, only 11 is not composite. Thus exactly 11 satisfies the condition.