fix bug where an uninitialized variable was used to find limit for primality test by trial division