Pergunta de entrevista da empresa Cognizant

Write merge sort logic and write prime number program.