YOur
System.out.println("Enter a number to determine if it is prime: ");
shouldn't be inside the function.
OUTSIDE of the function you would need to have (pseudoCode)
Ask the user for a number
Get the number from the user
Call the function, passing the number entered
if (the Function Returned True)
Tell the user it's a prime
Else
Tell the user it's not a prime
So the function itself JUST calculates if the number is a prime. That way, if you find a better algorithm in the future (hint see PiebaldConsult's hint!), you can just rewrite that one function without messing up the rest of the program.
Good luck!