Nokia interview question

Prime Numbers Java Problem Solving