"Prime Numbers I"

In math, a prime number is a number only divisible by 1 and itself.

Given the first few prime numbers

2 3 5 7 11 13 17 ...

What is the sum of the first 250 prime numbers? Note that you are seeing the first 7 primes above.


Ok well firstly, make a function to get the next prime, then create a loop up to 250 calculating the next prime, add them together and voila!

Awnser:

Source: