Getting run time error in this code
@sharad1103
Declare sieve array as bool. Declaring it as long long int takes 8 times more space than required. Change the value of N to 87 million. You only need to compute the primes till 87 million. Going any further is likely to give problems.