Fixing bug in isPrime() function.
Making test function for isPrime more thourough.
Adding additional check of digit length in isPandigital function.