Factoring technique, faster than trial division?