no need to iterate through the list of primes to find the potential missing prime.  simply look at the last one.