CitiusTech interview question

Java code for Factorial, Prime numbers