Hexaware Technologies Interview Question

Brief Introduction and asked to write Prime number, Sorting Programs on notepad