not really solving the problem though. would be easier to directly search for project euler xx solution.