1 2
primes=. p: i. 150000 NB. I just tested, and the 150000'th prime is over 2000000 so this is ok problem10=:+/(primes<2000000)#primes