Project Euler 42 - Coded triangle numbers

Official link: https://projecteuler.net/problem=42