Completed 4 functions assigned to me

The documentation and comments are also there.
There are two helper functions isPrime() and isPalindrome().
isPalindrome() is worth checking out.