Open study

is now brainly

With Brainly you can:

  • Get homework help from millions of students and moderators
  • Learn how to solve problems with step-by-step explanations
  • Share your knowledge and earn points by helping other students
  • Learn anywhere, anytime with the Brainly app!

A community for students.

How many prime numbers are there between 1,000,000 and 1,100,000?

Mathematics
I got my questions answered at brainly.com in under 10 minutes. Go to brainly.com now for free help!
At vero eos et accusamus et iusto odio dignissimos ducimus qui blanditiis praesentium voluptatum deleniti atque corrupti quos dolores et quas molestias excepturi sint occaecati cupiditate non provident, similique sunt in culpa qui officia deserunt mollitia animi, id est laborum et dolorum fuga. Et harum quidem rerum facilis est et expedita distinctio. Nam libero tempore, cum soluta nobis est eligendi optio cumque nihil impedit quo minus id quod maxime placeat facere possimus, omnis voluptas assumenda est, omnis dolor repellendus. Itaque earum rerum hic tenetur a sapiente delectus, ut aut reiciendis voluptatibus maiores alias consequatur aut perferendis doloribus asperiores repellat.

Join Brainly to access

this expert answer

SEE EXPERT ANSWER

To see the expert answer you'll need to create a free account at Brainly

Does that have to do with log(n)/n and the Riemann-Zeta function?
Oops, n/log(n)
With this question, I am seeking to clash a mathematical approach with a computerized one. Although it would be interesting to see in how many different ways we can tackle this exercise.

Not the answer you are looking for?

Search for more explanations.

Ask your own question

Other answers:

So that makes 6692.7, say 6693. Is there a better estimate using R-Z function, I don't really understand it.
mathmate, your approximation is fairly close!
For corroboration, I wrote this: http://ideone.com/qoDbe I am now trying an analytical approach.
Can you elaborate on your analytical approach, or is it proprietary?
6693 wasn't even close, you were being polite! Using the "offset logarithmic integral" \[Li(n) = \int\limits_{2}^{n}\ \frac{dt}{\log(t)}\] I get 7212.99 > 7213. Using your code, I get 7216. So now it's getting close. Also, your code included 1 as a prime, which it is not. This does not change the counts over 1 though.
That made me want to go back and recheck the code. ^^
wow.....
Interesting. Using the logarithmic integral from 2,000,000 to 2,100,000 you get 6881, whereas the (fixed) code chunks out 6871. The error is now negative.
Code looks good except comparison to 1.
btw - why picture change?
I get the same answers, except that I get 6872 for the actual count, both using your code and my code.

Not the answer you are looking for?

Search for more explanations.

Ask your own question