Problem Number 6 on Project Euler