Cognizant interview question

write a basic C program. like prime numbers.