public static void main(String[] args) {
		Scanner scan = new Scanner(System.in); // Create a new Scanner object
		
		System.out.print("Please enter two numbers, seperated by spaces: "); // Prompt the user to enter two numbers
		int a = scan.nextInt(); // Get the first number entered
		int b = scan.nextInt(); // Get the second number entered
		
		System.out.printf("Primes in between %d and %d, inclusive:\n", Math.min(a, b), Math.max(a, b)); // Let the user know that the program prints the primes from a to 
		
		for (int i = Math.min(a, b); i <= Math.max(a, b); i ++) { // For each of the numbers from (minimum(a, b)) to (maximum(a, b)), inclusive:
			if (isPrime(i)) { // If the number is prime:
				System.out.println(i); // Print it
			}
		}

		scan.close();
	}