prime permutations solved