2012-04-19 18:14:31 -04:00
|
|
|
! Copyright (C) 2012 John Benediktsson
|
|
|
|
! See http://factorcode.org/license.txt for BSD license
|
2016-08-20 00:01:16 -04:00
|
|
|
USING: math.primes.twins tools.test ;
|
2012-04-19 18:14:31 -04:00
|
|
|
|
|
|
|
{ { } } [ 3 twin-primes-upto ] unit-test
|
|
|
|
{ { V{ 3 5 } V{ 5 7 } V{ 11 13 } } } [ 13 twin-primes-upto ] unit-test
|
|
|
|
|
|
|
|
{ t } [ 3 5 twin-primes? ] unit-test
|
|
|
|
{ f } [ 2 4 twin-primes? ] unit-test
|
|
|
|
{ f } [ 3 7 twin-primes? ] unit-test
|