Project Euler #42: Coded triangle numbers