Handbook
Glossary
twin-primes? ( x y -- ? )
Vocabulary
math
.
primes
.
twins
Inputs
x
an
object
y
an
object
Outputs
?
an
object
Definition
USING:
combinators.short-circuit
kernel
math
math.primes
;
IN:
math.primes.twins
:
twin-primes?
( x y -- ? )
{
[
-
abs
2
=
]
[
nip
prime?
]
[
drop
prime?
]
}
2&&
;