Topic: Stack Problem / Level: beginner

Problem: Write a program to push elements into a stack and keep only the elements that are prime.

Run the code to see the output here...