change api, add output for candidates of pythagorean num