Reva Solutions interview question

String Manipulation, Prime Numbers, Integer Manipulation