- Write a function findMax that takes three integers as parameters and returns the largest number among them.
- Write a function findMin that takes three integers as parameters and returns the smallest number among them.
- Write a function isPrime that checks if a positive integer n is a prime number.
- Write a function sumDivisors to calculate the sum of all positive divisors of a positive integer n.
- Write a function sumDigits to calculate the sum of the digits of an integer n>0.
- Write a function that takes a non-negative integer n as a parameter and finds the smallest and largest digits of n.
- Write a function that takes an integer N>1 and a real number x as parameters and returns the sum:
ex≈S=1+1!x+2!x2+3!x3+⋯+n!xn