Cognizant interview question

What is a database? Write a program for prime numbers.