Getting Wrong Answer!

I think that I am doing something wrong in MODULO(%1000000007).

You can take my code in collab mode and tell where did my code went wrong.

Consider all the prime numbers up until 1000000.

I tried but it is not working

Here I corrected your code https://ide.codingblocks.com/s/268005, please see.

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.