]> gitweb.factorcode.org Git - factor.git/blobdiff - extra/project-euler/036/036.factor
project-euler: Rewrap, update links, add copyrights, tests
[factor.git] / extra / project-euler / 036 / 036.factor
index f63b9d5d11a1ca282b051cc982a85af45e698944..0f28170dae067c253cec8c38c8d76895883be855 100644 (file)
@@ -1,27 +1,29 @@
 ! Copyright (c) 2008 Aaron Schaefer.
 ! See https://factorcode.org/license.txt for BSD license.
 USING: combinators.short-circuit kernel math.parser ranges
-    project-euler.common sequences ;
+project-euler.common sequences ;
 IN: project-euler.036
 
-! https://projecteuler.net/index.php?section=problems&id=36
+! https://projecteuler.net/problem=36
 
 ! DESCRIPTION
 ! -----------
 
-! The decimal number, 585 = 1001001001 (binary), is palindromic in both bases.
+! The decimal number, 585 = 1001001001 (binary), is palindromic
+! in both bases.
 
-! Find the sum of all numbers, less than one million, which are palindromic in
-! base 10 and base 2.
+! Find the sum of all numbers, less than one million, which are
+! palindromic in base 10 and base 2.
 
-! (Please note that the palindromic number, in either base, may not include
-! leading zeros.)
+! (Please note that the palindromic number, in either base, may
+! not include leading zeros.)
 
 
 ! SOLUTION
 ! --------
 
-! Only check odd numbers since the binary number must begin and end with 1
+! Only check odd numbers since the binary number must begin and
+! end with 1
 
 <PRIVATE