initial approach to decomposition into primes