]> gitweb.factorcode.org Git - factor.git/blobdiff - extra/project-euler/052/052.factor
project-euler: Rewrap, update links, add copyrights, tests
[factor.git] / extra / project-euler / 052 / 052.factor
index c5d73ec3af7cf0beb8b2ae1424bb05a17bd9c6ab..fd00c6e1b2a6d84bc082a408847e6b3b169b6206 100644 (file)
@@ -1,25 +1,27 @@
 ! Copyright (c) 2008 Aaron Schaefer.
 ! See https://factorcode.org/license.txt for BSD license.
 USING: combinators.short-circuit kernel math math.functions
-    project-euler.common sequences sorting grouping ;
+project-euler.common sequences sorting grouping ;
 IN: project-euler.052
 
-! https://projecteuler.net/index.php?section=problems&id=52
+! https://projecteuler.net/problem=52
 
 ! DESCRIPTION
 ! -----------
 
-! It can be seen that the number, 125874, and its double, 251748, contain
-! exactly the same digits, but in a different order.
+! It can be seen that the number, 125874, and its double,
+! 251748, contain exactly the same digits, but in a different
+! order.
 
-! Find the smallest positive integer, x, such that 2x, 3x, 4x, 5x, and 6x,
-! contain the same digits.
+! Find the smallest positive integer, x, such that 2x, 3x, 4x,
+! 5x, and 6x, contain the same digits.
 
 
 ! SOLUTION
 ! --------
 
-! Analysis shows the number must be odd, divisible by 3, and larger than 123456
+! Analysis shows the number must be odd, divisible by 3, and
+! larger than 123456
 
 <PRIVATE