init primes logic