Trial division added.