/*
 * To change this license header, choose License Headers in Project Properties.
 * To change this template file, choose Tools | Templates
 * and open the template in the editor.
 */
package javaapplication44;

import java.util.Scanner;

/**
 *
 * @author joelx
 */
public class JavaApplication44 {

    /**
     * @param args the command line arguments
     */
    public static boolean estMultipleDe(int a, int b) {
        return a % b == 0;
    }
    public static  Scanner scan = new Scanner(System.in);
    public static boolean estpremier(int a){
        boolean estp = true;
        if(a%a==0 && a%1==0){
            
        
            return estp;
        }
        
        return !estp;
    }
    public static void main(String[] args) {
        System.out.println("entrez deux nombre");
        int x =scan.nextInt();
        if(estpremier(x)){
            System.out.println(x +" est premier ");
        }
        else
             System.out.println(x +" n'est pas premier " );
        // TODO code application logic here
    }
    
}
