Project Euler 613 - Pythagorean Ant

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