Deepak and Primes(1 test case getting wrong)What to do?

@Saksham12
Change the data type of sieve array from long long int to bool and increase its size. We are required to print the nth prime in this problem where n can be as large as 50000. 50000th prime number is a little over 86 million. To be safe , make your array of size 87 million and it will work.

1 Like

Thanks for recommendation