v1.0 final function

Final function takes input number and returns greatest prime factor,
covers all edge-cases.

Useful "atomic" algs function-ified for possible re-use.