ll@q;rep(q){ll@a;wt(FactorM(a)^3?"No":"Yes");}