The forteenth problem from ProjectEuler.net