Quantcast

A community for students. Sign up today!

Here's the question you clicked on:

55 members online
  • 0 replying
  • 0 viewing

adnanchowdhury

  • 3 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
  1. jaskaran
    • 3 years ago
    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. eubanksd55
    • 3 years ago
    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).

  3. Not the answer you are looking for?
    Search for more explanations.

    • Attachments:

Ask your own question

Ask a Question
Find 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
  • 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.