Comcast interview question

Solve project-euler problems