Made sieve a template so can use infinite ints if you need REALLY large primes