Andrew practices programming a lot and recently he came across the topic of pointers. He wondered if he could
use pointers to print all prime numbers from an array? Could you help him by writing a program which takes input
in an array and uses a pointer to find and print all the prime numbers from the array.
Sample Run:
Input:
1 2 3 4 5
Output:
2 3 5
Comments
Leave a comment