improving primality testing