Dought regarding problem solving

Can you explain why code is running on last testcase??

hello @anand_54
didnt get ur doubt?
pls explain

this is the code 1 test case can’t passed . Can you explain how i resolved it?

can you tell why one testcase getting failled with this code

is ur doubt is in segmented sieve i.e deepak and primes ii ?

asking becuase the code that u shared is of deepak n primes ii

here add st<primes.size()

i also have dought in that problem

check my last response

in problem linear congruence also i don’t pass 1 test case/

https://ide.codingblocks.com/s/413599 please check this code also

wait for sometime, i will check n let u know

the method u are using to find inverse is not correct, it works only for prime cases, in question it is mentioned that given number are coprime n not prime.
use other method for finding inverse

which method i should use to find the inverse of number . IF number is not prime? please help

use extended euclid algorithm

refer this->

Thank you sir , i got it

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.