On Thu, Oct 30, 2008 at 4:36 PM, Roger Hui <[EMAIL PROTECTED]> wrote:
> Some popular ranges would be
> y<2^31
> y<2^32
> y<2^63
> y<2^64

Here's a model for supporting multiple ranges:

V=:2047 1373653 25326001 3215031751 2152302898747 3474749660383 34155007172832x
P=:3 5 7 11 13 17
A=:2,P {.~  (V-1)&I.
   A 2046
2
  A 2047
2 3
  A 1373653
2 3 5

-- 
Raul
----------------------------------------------------------------------
For information about J forums see http://www.jsoftware.com/forums.htm

Reply via email to