PrimeSieve constructor

PrimeSieve(
  1. int max
)

Constructs a prime sieve up to max. Throws a RangeError if max is negative.

Implementation

PrimeSieve(int max) : max = RangeError.checkNotNegative(max, 'n');