A solution to Project Euler Problem 67