You are viewing a single comment's thread. Return to all 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]
Seems like cookies are disabled on this browser, please enable them to open this website
I agree to HackerRank's Terms of Service and Privacy Policy.
Project Euler #51: Prime digit replacements
You are viewing a single comment's thread. Return to all 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]