Checks if at least one permutation of a number is prime.