Update Primes.cpp

modified to use sieve for genprimes and fix warning needs test