here is my code .
can u check once wat wrong in my code
Playing_with_cards
u have to check it with the ith prime number during the ith iteration u r checking with a constant q
yess iam checking with ith prime number but iam not getting the sequence in which i have to insert and print
when u r doing h queries like
h=5
then u have to check with the ith iteraration prime number
like
in first loop
i=1 then 2
i=2 then 3
i=3 then 5 ans so on