[ENH] Integer primality testing