Added generate_probable_prime function