fileIO and project Euler 3