Pregunta de entrevista de Tata Consultancy Services

Prime number program in Java, C and C++