solve prime permutations