semmons99 / gmail.com wrote:
> I think that there are more key presses then you think. There are
> (10**4)*3 different combinations which totals 30,000. But that takes
> 30,000*5 key presses which is 150,000 key presses. So if the code was 5
> digits, it is 1,500,000 key presses to test them all by brute force.
> Anyway, here is my first solution. It is unrefined, but I haven't
> really had time to work on it much.

Hi Shane,

I'm not sure I follow you..

With 4 digit codes, there are 10,000 unique codes, or 10**4.  Each code 
takes a maximum of 5 keypresses to test, therefore 5*10**4 == 50k 
keypresses.

Regardless, thanks for your solution!

--Steve