Pollard's p-1 and fix Lehman's method