First two test cases failing
Deepak and primes
hey @yath17, constraint of question are high and you are using int here. But if you use long long, vector will not treat. So you should use array instead vector and long long instead of int.
Please refer to this code for your reference https://ide.codingblocks.com/s/105972