Domanda di colloquio di Tata Consultancy Services

Write the program for prime number?