simple prime test by trial division