Pergunta de entrevista da empresa EY

Write a java program to print if a number is prime or not