Sanket loves candy

sir,can you tell me how to approach this problem because it is not solving by approach we apply simply checking the prime number

hey! could you please share the link of the problem

Hey, check the problem’s name again and mention problem’s exact name here as there is no problem named “Sanket loves candy”.