Project Euler #163: Cross-hatched triangles