Pregunta de entrevista de Cognizant

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