Added solution for Prime permutations