Prob10 better prime method