1. What does the program print if you run it? Give it some input, say 9, maybe run it a few times with other numbers, and see what it displays.
2. As for what it does after calculating and displaying the square root of n, does the variable name "isPrime" give you a clue? If not, does the output "Number is a prime number" give you an even bigger clue?