Optimization for prime validator

Added a yield break BigIntegerPrimeValidator so it will stop once it
finds that the number is not prime.