Pregunta de entrevista de Tata Consultancy Services

Write code for prime number