Prime Updates

Added a new condition for detecting new primes.
Improved speed of prime algorithm.