]> gitweb.factorcode.org Git - factor.git/blobdiff - extra/project-euler/009/009.factor
project-euler: Rewrap, update links, add copyrights, tests
[factor.git] / extra / project-euler / 009 / 009.factor
index 93213ae0df9f9103056f7cf5a1ffe625bec5a64c..98b591762c3c0fec5a5ef41321a3036295ce66a6 100644 (file)
@@ -3,18 +3,19 @@
 USING: kernel make math sequences sorting project-euler.common ;
 IN: project-euler.009
 
-! https://projecteuler.net/index.php?section=problems&id=9
+! https://projecteuler.net/problem=9
 
 ! DESCRIPTION
 ! -----------
 
-! A Pythagorean triplet is a set of three natural numbers, a < b < c, for which,
+! 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.
+! There exists exactly one Pythagorean triplet for which a + b +
+! c = 1000. Find the product abc.
 
 
 ! SOLUTION