Months of preparation and coding has led you to this day. Slowly but surely you worked your way into the security of the most secure system in the world: the computer override for the vault containing the Coca-Cola secret formula. You have one last security protocol to bypass, and you are in.
Ready and able, you fire up your terminal. You slowly work through the series of backdoors and wormholes you put in place to get to the final gate. When you try to access the program to unlock the vaults.
You are met with a familiar message.
Greetings. Please input the key associated with lock #55476
You are prepared for this. You have come to this block numerous times. Every day the lock changes. Every day a new key, but now you know the algorithm to get the key and open the lock.
In prior attempts, you have received a number of locks. You brute forced your way to the key, but by the time you had the correct value, the system had reset for the day and you were met with the message
I'm sorry, but lock #XXXXX is no longer active. Please enter the key for lock #YYYYY
It took you a while, but you realized that XXXXX
and YYYYY
were the old lock and new lock respectively. This system only popped up the message when you put in the correct key for the old lock.
So, you collected locks and keys. You had the following table:
LOCK | KEY
66453 | 25916670
12345 | 4777515
33200 | 14342400
55475 | 20137425
43256 | 16913096
73553 | 28759223
34875 | 13113000
99858 | 36348312
Using this table, you calculated the algorithm to generate any key for any lock.You quickly enter the key and you are in. Congratulations, you now own the Coca-Cola secret formula!
There is a small degree of computer knowledge potentially needed here, although it is possible to create the solution without any computer knowledge.
HINT 1:
Each digit is important in its own right, as is the number as a whole.
HINT 2:
might be helpful
EDIT
I added more keys to the table to try and eliminate any false positives on the algorithm.