Pregunta de entrevista de Tech Mahindra

write find Prime numbers logic?