Magic Triangle

Click each circle to type a number 1-5 (for the size 5 case), or a number 1-6 (for the size 6 case). No number is repeated along any of the drawn lines. The clues indicate the sum of the 3 circles touching that triangle.
Support for puzzles of size 6 has been added. They may take a minute to generate.
of size 5   6