Project Euler: Problem 41: Pandigital Prime