MATLAB: I need help with finding how many prime numbers are in between 0 and 1,113,368 but I don’t what a list of all the numbers just how many there are.

prime numbers

I need help with finding how many prime numbers are in between 0 and 1,113,368 but I don't what a list of all the numbers just how many there are. I tried using primes(1113368) but that just gave me a huge list of all the prime numbers

Best Answer

Hint:
>> length( primes(1113368) )
ans =
86706
Related Question