Implementation of Primality Test using Square root of N method.