1 Test case failing in Prime Visits

Can anyone please tell me why my last test case is failing?
https://ide.codingblocks.com/s/71653

change the array size to100001