attempting to speed up program by checking list of primes already found. not working correctly right now.