1057: 素数判定
import java.util.Scanner;
public class Main {
public static void main(String[] args) {
Scanner cin = new Scanner(System.in);int x=cin.nextInt();if(isPrime(x)) System.out.println("Yes");else System.out.println("No");}public static boolean isPrime(int x){
if(x<=1) return false;for(int j=2;j<=Math.sqrt(x);j++) if(x%j==0) return false;return true;}
}