MIT 6.00 Intro Computer Science (OCW) OpenStudy (anonymous):

Hey - I finished PS1a with little difficulty, but I'm totally lost with PS1b. I simply don't understand the question. Can someone explain the problem in music-major terms? OpenStudy (anonymous):

I think a big problem is I can't figure out what "e" is. OpenStudy (anonymous):

e is a constant like pi. It's just a number that's useful for figuring out certain kinds of problems. it's value is 2.718... You don't need to know what it is or include it specifically in your code in any way--if you use the log function as in math.log(currentPrimeNumber) it will automatically do the part of the calculation that involves e. You do not need to specify e. OpenStudy (anonymous):

Here's a restatement of the problem that you can use functionally: Find all the primes up to some number which we will call x. That means that if x is 1000, you find all the prime numbers BELOW 1000. It does NOT mean that you find 1000 prime numbers. Add together the logs of those prime numbers. That just means that for each prime, you do the operation math.log(prime) and add the result to the running total. The total of the logs should be close to x. The higher x gets, the closer the sum of the logs should be, generally. OpenStudy (anonymous):

Okay that makes sense. It seems very similar to the first problem so I should be good from here. Thanks so much!

Latest Questions Tessaykf: A particle moves so that its position vector with respect to the origin of a reference frame Oxyz is r(t)=bcos w t+bsin w t+vt k,where i,j and k are unit ve
5 minutes ago 1 Reply 0 Medals Gia: @Eiwoh2 Is u da owner cuz if u are check ur dmz plz and thank you ! :)
9 minutes ago 7 Replies 0 Medals Imagine: Tutorial; Finding the "X" Value In A Mathematical Equation!
14 seconds ago 38 Replies 3 Medals aiminer1: Please list the ways that negative body image is characterized. Then, list the ways that positive body image is characterized.
38 minutes ago 1 Reply 0 Medals jhonyy9: somebody good in math induction proof ? so prove that always there exist a prim number p the form of 6n +/- 1 what adding to the number of 12g , where g is
58 minutes ago 2 Replies 0 Medals Sanweeve: A lawn-mowing company is trying to grow its business. It had 30 clients when they started its business and wants to increase by 6 new clients each week.
37 minutes ago 8 Replies 2 Medals Imagine: Tutorial on how to color text.
40 minutes ago 39 Replies 2 Medals Eyadhany: A mass of 3kg is attached to spring scale constant of 36n/m. What is the spring d
1 hour ago 10 Replies 0 Medals BlueWolf08: Which expression is equivalent to one over fourn u2212 16? one over four(n u2212
1 hour ago 33 Replies 3 Medals youdointlikeme: Answer the following questions in the essay box below. Remember, the density of water is 1g/cm3, so the mass of water equals the volume of the rose quartz.
2 hours ago 8 Replies 1 Medal