Deepak and primes


when I am increasing the array size all test cases are failed
why

@mohitshendre2609
Your code is giving runtime error on increasing size of the array. This is because of memory limit and you are creating array of long long int. So instead of making p[] of long long your can create bool p[] since it only contain binary values. So ar[] should have datatype int. Try to reduce memory, your code will work