A year is a leap year if it is divisible by 4. but if the year is divisible by 100, it is a leap year only when it is also divisible by 400.