L8437
Using only 0-9 gives you a base of 10, which for your examples is 1016 (entropy of 53.15 bits) and 1064 (entropy of 212.6 bits). So 64 numbers is more secure than 16.
But it is equally important how large your character set is, as that is half the password. Using numbers, lower case letters, upper case letters and 9 different special characters (e.g. @ # - _ etc) gives you a base of 45, which using the previous examples, 4516 which as an entropy of 84.4 and 4564 which is a whooping 393.6 bits. Which is a lot more secure at the same password lengths and, unless you memorise pi-digits for fun, equally hopeless to remember.
So if you're not using a password manager (you should) then do what @mmmm said and use a string of words instead.
More reading here if you want somwhere to start to learn more:
https://en.wikipedia.org/wiki/Password_strength
https://www.privacyguides.org/en/basics/passwords-overview/
Ps. For anyone reading, do correct me if I'm wrong about something. I am so not an expert at this.