begin working on project euler problem 3