Pregunta de entrevista de Cognizant

Write merge sort logic and write prime number program.