Cognizant interview question

write a c program to find a prime number.