C program to find prime numbers in an array using functions

C program to find prime numbers in an array using functions

Output:

Enter the number of elements:
20
Enter the elements:
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20
Prime numbers in the array are:
2 3 5 7 11 13 17 19

Implementation: