// Arup Guha
// 2/3/2026
// Adaptation of PrimeCheck3.java to illustrate a file with 2 classes
// and calling a static method from a different class.

import java.util.*;

public class PrimeCheck4 {

	public static void main(String[] args) {

		Scanner stdin = new Scanner(System.in);
		
		// Read the number.
		System.out.println("What number do you want to check?");
		int n = stdin.nextInt();

		// End message.
		if (MathFunctions.isPrime(n))
			System.out.println(n+" is a prime number.");
		else
			System.out.println(n+" is NOT a prime number.");
	} 
}