project-euler

Counting Sundays

Problem Description

You are given the following information, but you may prefer to do some research for yourself.

How many Sundays fell on the first of the month during the twentieth century (1 Jan 1901 to 31 Dec 2000)?

Performance

Try it online!

Real time: 0.530 s
User time: 0.352 s
Sys. time: 0.139 s
CPU share: 92.56 %
Exit code: 0