Fixed a divide by zero error in the prime function and solved the issue of why the entire program would not run.