Project Euler Problem 71