Getting wrong answer on spoj (PRIME 1)
here in long long int p one space was missing in b/w… and make N = 1e7+1 instead of 1e8+1 as for this value array goes out of index…
I hope it clears all ur doubts??
still getting wrong answers
Got it correct, it was another error
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.