Number theory doubt

cant find the issue with my solution in this question

https://ide.codingblocks.com/s/264390 here is my code

@rohit_1906
Your count[1] was zero which should be one. and you were not considering it as well.