Question d’entretien chez Wipro

write a program to print the prime numbers using function?