process of elimination for prime list