euler project, problem 49 - prime permutations