Logical help in codechef

My code-
https://www.codechef.com/FEB21C/submit/PRIGAME

The problem-
https://www.codechef.com/FEB21C/problems/PRIGAME

Please tell me where I am geting wrong.My logic is that if the no of prime nos upto X is greater than Y then Divyam wins else the chef wins