Longest factor string for 840