Ask your own question, for FREE!
Mathematics 13 Online
OpenStudy (anonymous):

What is the sum of the first 1000000 prime numbers?

OpenStudy (anonymous):

my computer is working on it

OpenStudy (chris):

http://mathworld.wolfram.com/PrimeSums.html

OpenStudy (anonymous):

http://ideone.com/rOLSY

OpenStudy (anonymous):

It won't let me put in 1,000,000 :( but it does the trick :-D

OpenStudy (anonymous):

Now if only I can figure out how to implement the stuff in chris's link :(

OpenStudy (chris):

ah, so you're coding?

OpenStudy (anonymous):

7472966967499

OpenStudy (anonymous):

it's 1 line of mathematica code

OpenStudy (anonymous):

1 line of mathematica !!! show me that line :-D

OpenStudy (anonymous):

mathematica probably has a builtin isPrime() function then :-D

OpenStudy (anonymous):

well, 2 if you want to see the answer Do[sum = sum + Prime[i], {i, 1, 1000000, 1}] sum

OpenStudy (anonymous):

oooh nice

OpenStudy (anonymous):

and it only takes 4 seconds to run

Can't find your answer? Make a FREE account and ask your own questions, OR help others and earn volunteer hours!

Join our real-time social learning platform and learn together with your friends!
Can't find your answer? Make a FREE account and ask your own questions, OR help others and earn volunteer hours!

Join our real-time social learning platform and learn together with your friends!