write a java function that returns true if number is prime and false if number is not prime

Write a java function that returns true if number is prime and false if number is not prime