Simplified the Primes Class