The problem (ANARC09C)->here
Here is my code
Thanks everyone for their support. (The code is removed after getting AC, there was an error in prime number generation.)
Can anyone please help me and find the errors… thank you.
Check your output format.
Thanks for the help, but actually, this is not the only problem as I am still getting WA.
Then try these:
202 152178 327 926403 1129 10 0 0
My AC code gives
5:4 3:2 3:3
Thank You @simes. There was a silly error.