All the answers to my code are correct but still, it gives the wrong answer on every test case
Deepak and Primes
@shivanshu12800
Your implementation is slow. Please refer to this code for a better approach.
If my answer is able to resolve your query, please mark the doubt as resolved.