Init method

Trial division added