Got Homework?
Connect with other students for help. It's a free community.
Here's the question you clicked on:
 0 viewing
adnanchowdhury
Group Title
I don't understand what PS1b is asking for?
I have completed PS1a  find the 1000th prime number and gained the correct answer.
 3 years ago
 3 years ago
adnanchowdhury Group Title
I don't understand what PS1b is asking for? I have completed PS1a  find the 1000th prime number and gained the correct answer.
 3 years ago
 3 years ago

This Question is Closed

jaskaran Group TitleBest ResponseYou've already chosen the best response.0
ps1b 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.
 3 years ago

eubanksd55 Group TitleBest ResponseYou've already chosen the best response.1
yes, 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).
 3 years ago
See more questions >>>
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.