Prime Visits Prime Visits Prime Visits


My code is not passing the test cases. Kindly provide me a better code with explanations.

Hello @yash_aryan i have reimplemented your logic;


if you have any doubt you can ask here;
Happy Learning!!

What is int32_t main() and where is it used? Why can’t we use int main() at it’s place?

Hello @yash_aryan if you have seen above then there i have declared int as long long int so i dint have to declare long long int everywhere :
for that i have define int as long long int but int in int main cant be of type long long int so for that we have to write int32_t main.
it is just the syntax.
you can use that where youwant to take data type as long long int.
Happy Learning!!

I hope I’ve cleared your doubt. I ask you to please rate your experience here
Your feedback is very important. It helps us improve our platform and hence provide you
the learning experience you deserve.

On the off chance, you still have some questions or not find the answers satisfactory, you may reopen
the doubt.

Hi, Tushar,
For range from -20 to 20, the solution you provided is giving output as -94140032442760, can you tell why ?