primes class version 1