Topic: Stack Problem / Level: beginner

Problem: Implement a function to pop elements from a stack until a prime number is encountered.

Run the code to see the output here...