project-euler.186: the build bots can handle it.

windows-high-dpi
John Benediktsson 2018-02-14 19:34:15 -08:00
parent 75c6065a14
commit 700fc0367b
2 changed files with 2 additions and 3 deletions

View File

@ -1,4 +1,3 @@
USING: project-euler.186 tools.test ;
! Uses too much memory; don't want to run on build machines
! [ 2325629 ] [ euler186 ] unit-test
[ 2325629 ] [ euler186 ] unit-test

View File

@ -45,7 +45,7 @@ IN: project-euler.186
55 [1,b] [ (generator) ] map <circular> ;
: advance ( lag -- )
[ { 0 31 } swap nths sum 1000000 rem ] keep circular-push ;
[ [ 0 swap nth ] [ 31 swap nth ] bi + 1000000 rem ] keep circular-push ;
: next ( lag -- n )
[ first ] [ advance ] bi ;