A community for students.
Here's the question you clicked on:
 0 viewing
anonymous
 5 years ago
I don't understand what PS1b is asking for?
I have completed PS1a  find the 1000th prime number and gained the correct answer.
anonymous
 5 years ago
I don't understand what PS1b is asking for? I have completed PS1a  find the 1000th prime number and gained the correct answer.

This Question is Closed

anonymous
 5 years ago
Best ResponseYou've already chosen the best response.0ps1b is asking you to first compute logarithms of the prime numbers you just printed , then print sum all the logarithms and then print the ratio of sum of logarithm and the last prime number you just got. it doesn't want you to print ratio of sum and number of prime numbers instead the ratio of sum and last prime number.

anonymous
 5 years ago
Best ResponseYou've already chosen the best response.0yes, jaskaran is right. you take the logarithms of all of the 1000 primes you've calculated, starting with the number two (2) and going all the way to some arbitrary prime number N that is less than your 1000th prime number. you add all of these values (the logarithms of the primes from 2 to N) and compute the ratio of this sum to N. you then repeat this process, making your nexthighest prime number the new N, and repeat it again and again until you have reached your 1000th prime. so your first computation will be (log(2) + log(3))/(3), and your second computation will be (log(2) + log(3) + log(5))/(5). so the format is (log(2) + log(3) + ... + log(N))/(N).
Ask your own question
Sign UpFind more explanations on OpenStudy
Your question is ready. Sign up for free to start getting answers.
spraguer
(Moderator)
5
→ View Detailed Profile
is replying to Can someone tell me what button the professor is hitting...
23
 Teamwork 19 Teammate
 Problem Solving 19 Hero
 Engagement 19 Mad Hatter
 You have blocked this person.
 ✔ You're a fan Checking fan status...
Thanks for being so helpful in mathematics. If you are getting quality help, make sure you spread the word about OpenStudy.