HashStudioz interview question

Prime Number Function and calling that function