Comment "Doomsday" algorithm (Score 1) 136
A pleasant exercise is the Doomsday algorithm (invented I think by John Conway) and described on rudy.ca/doomsday.html whereby you can calculate in your head the day of the week of any given calendar date in the last century. (It takes a minute or so, faster if you have been practicing).