Added Test cases in main to debug problems in prime function