Hexaware Technologies interview question

prime number program oops concept and its types.