Project Euler 51 - Prime Digit Replacements

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