Quantcast

Got Homework?

Connect with other students for help. It's a free community.

  • across
    MIT Grad Student
    Online now
  • laura*
    Helped 1,000 students
    Online now
  • Hero
    College Math Guru
    Online now

Here's the question you clicked on:

55 members online
  • 0 replying
  • 0 viewing

adnanchowdhury

I don't understand what PS1b is asking for? I have completed PS1a - find the 1000th prime number and gained the correct answer.

  • 2 years ago
  • 2 years ago

  • This Question is Closed
  1. jaskaran
    Best Response
    You've already chosen the best response.
    Medals 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.

    • 2 years ago
  2. eubanksd55
    Best Response
    You've already chosen the best response.
    Medals 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 next-highest 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).

    • 2 years ago
    • Attachments:

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
  • 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.

This is the testimonial you wrote.
You haven't written a testimonial for Owlfred.