ll@Q,@A[Q];wtLn(FactorM(A(Q))==3?"Yes":"No");