Regarding playing with cards


This is my ide.
please mention where I have done mistake.

Question says to take ith prime number in th iteration…