Playing with cards----test cases not passing

plz chk it,unable to find the error

Run the i loop in prime sieve upto i*i

unable to get it chk the code again plz?https://ide.codingblocks.com/s/229293