RSA.generageKey: tune trial division