Use the proper free function to free the prime string