For a 4-digit code the number of possibilities is 10 choices for the first digit. 10 choices for the second digit. 10 choices for the third digit. 10 choices for the fourth digit. That's 104 = 10000 possible 4-digit PINs. 10 choices for the first digit. 10 choices for the second digit. 10 choices for the third digit. 10 choices for the fourth digit. 10 choices for the fifth digit. 10 choices for the sixth digit. That's 106 = 1000000 possible 4-digit PINs. For a discussion of increased security of 6 digits over 4, go to this website: https://www.intego.com/mac-security-blog/ios-9-boost-passcode-security/ Edwin