All test cases aint passing
@G_rahil The value of n here is 5*10^5. So at max you need to traverse 10^8 times in seive. And make sure you create a vector not an array.
@G_rahil The value of n here is 5*10^5. So at max you need to traverse 10^8 times in seive. And make sure you create a vector not an array.