Project Euler #51: Prime digit replacements

Problem Name:
Project Euler #51: Prime digit replacements
Site:HackerRank
Links:
Tags:
Problem setters: