Cognizant Interview Question

Write a code for prime number