So I am on ps1pr2. Through reading here, I figured out the first problem and here is my code. I tweaked it a little to fit the second problem and let the user input to what prime is being calculated:
http://codepad.org/ALTEQij0
My next question is what should my next step be? I am at a bit of a loss as how to calculate the sums of the logs. Should I assign a new variable (sumoflog), and then just keep adding to that as I work through the prime numbers?

Hey! We 've verified this expert answer for you, click below to unlock the details :)

I got my questions answered at brainly.com in under 10 minutes. Go to brainly.com now for free help!

Looking for something else?

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

## More answers

Looking for something else?

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