Revert "PrimeCheck function"

This reverts commit bd7ef6c70f03632a87944846fb4d395f0317083b.