Converse of the Pythagorean theorem: is it a right triangle?