Hidden testcases

can i get hidden testcase?
At least one because i am not getting the pattern of output by given testcase.
please help!

hello @sumitlohan
you can check your output for this testcase
sample input
47 21
80 37 86 79 8 39 43 41 15 33 30 15 45 55 61 74 49 49 20 66 77 19 85 44 81 82 27 5 36 83 91 45 39 44 19 44 71 49 8 66 81 40 29 60 35 31 44

sample output
80
86
8
30
74
20
66
44
82
36
44
44
8
66
40
60
44
81
39
45
27
81
45
15
33
15
39
55
85
5
35
49
91
77
49
49
19
19
29
31
37
41
43
61
71
79
83

haha, sir g , iteration value is too large to judge manually. Kindly help me with iteration 2 or 3. I just want to get the correct pattern which que is demanding. I am not getting because of iteration value.

@sumitlohan
let me explain you the sample test case with q=3
.5 3
3 4 7 6 5
after 1st iteration (1st prime no is 2)
A1->5,7,3
B1->6,4
now 2 nd iteration (2 nd prime no is 3)
A2->7,5
B2->3
now 3 rd iteration ( 3 rd prime no is 5)
A3->7
B3->5
Output numbers on these cards from top to bottom of each piles in order of B1, B2, B3,A3.

Thanks a lot sir. It helped me a lot.

hi @sumitlohan
please mark your doubt as resolved and rate my work as well.