test constructor speed; compute primes arithmetically instead of hardcoding