added Set::contains() and headers in CMakeLists.txt
added some functions for primes