Playing with cards Stacks

I am getting segmentation fault hat is going wrong in the code?

Hey @aryamaan1011, call seive method to calculate primes!

Also your implementation for stack b is incorrect!
you have to output in order b1,b2,b3… and your output will be in order bq,…b2,b1.
So maintain a queue of stack!

I hope I’ve cleared your doubt. I ask you to please rate your experience here
Your feedback is very important. It helps us improve our platform and hence provide you
the learning experience you deserve.

On the off chance, you still have some questions or not find the answers satisfactory, you may reopen
the doubt.