Revisited tests for Integer and functions in Math.Primality