Five Weekends
October 16, 2018
This task comes to us from Rosetta Code: The month of October 2010 has five Fridays, five Saturdays and five Sundays.
Your task is to count and make a list of all months from 1900 to 2100, inclusive, that have five Fridays, Saturdays and Sundays, and to count and make a list of all years from 1900 to 2100, inclusive, that have no such months. When you are finished, you are welcome to read or run a suggested solution, or to post your own solution or discuss the exercise in the comments below.