Problem17 of Project Euler - first draft