Amazon interview question

Prime Number Calculator