Special Pythagorean Triplet

A Pythagorean triplet is a set of three natural numbers a, b, c for which, a²+b² = c². For example, 3² + 4² = 9 + 16 = 25 = 5². There exists exactly one Pythagorean triplet for which a + b + c = 1000. Find the product abc.
 #Special Pythagorean Triplet

list = []
for a = 1:1000
    for b = 1:1000
        for c = 1:1000
            if (a + b + c) == 1000
                push!(list,[a,b,c])
            end
        end
    end
end
for tuple in list
    a, b, c = tuple
    if a^2 + b^2 == c^2
        return [tuple, a*b*c]
    end
end


  

31875000