Can you solve the Leonardo da Vinci riddle?

You’ve found Leonardo da Vinci’s secret vault, secured by a series of combination locks. Fortunately, your treasure map has three codes: 1210, 3211000, and… hmm. The last one appears to be missing. Can you figure out the last number and open the vault?

[TED Ed]