add primelib, tests primality and generates primes with sieve