First iteration of Pythagorean triplets in Ruby: brute force approach