! Copyright (c) 2009 Aaron Schaefer.
! See http://factorcode.org/license.txt for BSD license.
-USING: combinators fry kernel math math.primes math.primes.factors
-math.ranges project-euler.common sequences sequences.extras ;
+USING: combinators kernel math math.primes math.primes.factors
+ranges project-euler.common sequences sequences.extras ;
IN: project-euler.069
! http://projecteuler.net/index.php?section=problems&id=69
PRIVATE>
: euler069 ( -- answer )
- 2 1000000 [a,b] [ totient-ratio ] map
+ 2 1000000 [a..b] [ totient-ratio ] map
arg-max 2 + ;
! [ euler069 ] 10 ave-time