Topic: Stack Problem / Level: beginner

Problem: Create a function to push numbers into a stack and keep only the prime-indexed elements.

Run the code to see the output here...