problem 10 down to less than 2 seconds now

Instead of incrementing "i", now I just increment the index of the
prime array, and set i to the next known prime each time around the loop