Teaching with Euler Project problems: #5