Cognizant Interview Question

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