Created prime_lib.py

The core for calculating prime related numbers