Fixed issue with prime number generator.