Pregunta de entrevista de EY

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