Use existing recursion tools rather than explicit one
parent
7303316a04
commit
4f42d00769
|
@ -7,7 +7,7 @@ IN: math.primes
|
|||
<PRIVATE
|
||||
|
||||
: find-prime-miller-rabin ( n -- p )
|
||||
dup miller-rabin [ 2 + find-prime-miller-rabin ] unless ; foldable
|
||||
[ dup miller-rabin ] [ 2 + ] [ ] until ; foldable
|
||||
|
||||
PRIVATE>
|
||||
|
||||
|
|
Loading…
Reference in New Issue