Itlize Global Interview Question

write a java code to check if a number is prime