Cognizant interview question

Prime Number and Factorial using Python