Another quick challenge via Fermat's Library:
Via Wikipedia:
A permutable prime, also known as anagrammatic prime, is a prime number which, in a given base, can have its digits' positions switched through any permutation and still be a prime number.
Here is the list of permutable primers under 1,000:
2, 3, 5, 7, 11, 13, 17, 31, 37, 71, 73, 79, 97, 113, 131, 199, 311, 337, 373, 733, 919, 991
In the language of your choice, write a script to find permutable primes.
Happy coding! 🤓