Adding primes C++ utility and optimizing python prime utility