Slow solution for 43
triangle number check
triangle number check
added triangle check