Topic: Stack Problem / Level: beginner

Problem: Write a program to push elements into a stack and pop elements based on their index (prime indices first).

Run the code to see the output here...