Project Euler 49 - Prime Permutations

Official link: https://projecteuler.net/problem=49