Euler Problem #10

Posted Thursday, April 24, 2008 10:45 PM by amarsan

Sum the primes below 2,000,000.

This is the sort of problem that Matlab handles very well. The code looks pretty, and I got an answer right quick. Now if I type fast, I'll get my code posted before my battery drains and Baseball Tonight ends.

function euler10
sum(primes(2000000),2)

Comments

No Comments

Leave a Comment

(required) 
(required) 
(optional)
(required)