Project Euler #51: Prime digit replacements