Worked with prime factors selection