Add context example for invalid input
Refactor; define valid_input? method to handle determining if the input is valid
Refactor; move mathing to its own method
Refactor; replace remaining code in is_prime with ternary operative calls