Ask your own question, for FREE!
Mathematics 7 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!
Latest Questions
Arriyanalol: i need help
2 days ago 7 Replies 1 Medal
Arriyanalol: CONGRATS to me
2 days ago 8 Replies 2 Medals
Legomaster346: What colleges are good that are near Arab Alabama?
1 week ago 5 Replies 0 Medals
Arriyanalol: i need help
1 week ago 6 Replies 2 Medals
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!