1) Solution to problem 41
2) optimized isPrime() and isPandigital() helper functions
3) added generatePandigital() function to generate n-digit pandigitals