]> gitweb.factorcode.org Git - factor.git/blobdiff - extra/project-euler/037/037.factor
project-euler: Rewrap, update links, add copyrights, tests
[factor.git] / extra / project-euler / 037 / 037.factor
index 892af2bac3cc61e9634e8febb35df6f809bc1dee..9713a36184918b00603c4f9da327f32b22fac45d 100644 (file)
@@ -1,22 +1,25 @@
 ! Copyright (c) 2008 Aaron Schaefer.
 ! See https://factorcode.org/license.txt for BSD license.
-USING: kernel math math.parser math.primes sequences project-euler.common ;
+USING: kernel math math.parser math.primes sequences
+project-euler.common ;
 IN: project-euler.037
 
-! https://projecteuler.net/index.php?section=problems&id=37
+! https://projecteuler.net/problem=37
 
 ! DESCRIPTION
 ! -----------
 
-! The number 3797 has an interesting property. Being prime itself, it is
-! possible to continuously remove digits from left to right, and remain prime
-! at each stage: 3797, 797, 97, and 7. Similarly we can work from right to
-! left: 3797, 379, 37, and 3.
+! The number 3797 has an interesting property. Being prime
+! itself, it is possible to continuously remove digits from left
+! to right, and remain prime at each stage: 3797, 797, 97, and
+! 7. Similarly we can work from right to left: 3797, 379, 37,
+! and 3.
 
-! Find the sum of the only eleven primes that are both truncatable from left to
-! right and right to left.
+! Find the sum of the only eleven primes that are both
+! truncatable from left to right and right to left.
 
-! NOTE: 2, 3, 5, and 7 are not considered to be truncatable primes.
+! NOTE: 2, 3, 5, and 7 are not considered to be truncatable
+! primes.
 
 
 ! SOLUTION