var number=(x>1 && res)?x+" простое":x +" Err";
if(x>1 && res) { number=x+" простое"; } else { number = x +" Err";