Taking a stab at http://projecteuler.net/problem=7