Add prime number generator
Fix issue in primegen