94153
.
The sum of the # is 22. The sum of digit 1+3 = 10, thus the sum of # 2,4,5 = 12.
The sum of # 2,4 is 2 * # 2 +1 = uneven, so # 5 must be uneven as well.
.# 1 is the square of # 5, thus # 5 must be 1 or 3.
If # 5 = 1, then # 1 = 1, but the code consists of different numbers.
Thus # 5 = 3, # 1 = 9, # 3 = 1
That leaves # 2,4, whose sum is 12 - 3 = 9
Thus # 2 = 4 and # 4 = 5
And the code is 94153