Question d’entretien chez Cognizant

Write merge sort logic and write prime number program.