each icon's worth is 10^ its number (example the 4th one is worth 10^4 = 10000 points.)
I used code (i mostly have in my head now) on a clicker game.