Wipro Interview Question

write a program to print the prime numbers using function?