Cognizant Interview Question

prime number program