Project Euler #51: Prime digit replacements

  • + 0 comments

    You are probably forgetting that: 100003 when having the 0 replaced by two # can be: ['100##3', '10#0#3', '1#00#3', '10##03', '1#0#03', '1##003']

    I corrected my code on this idea, fixed tests #13, #15, #17.

    By the way:, test: 7 2 5 [1000003, 1020023, 1030033, 1050053, 1080083]