Assignment 2: Perfect Number and Iterative Process

Part A Write SML function (recursive) to determine whether a positive integer is a perfect number or not as was discussed in the class.

Part B Write SML iterative function to compute factorial of a number. Write the applications in the assignment 1 using iterative factorial function.

Part C Find whethet a number is a prime number or not. (This would have to be submitted, the details how to submit will be given later).