実験課題2

Exercise 2(課題2) See the section 3.2.1. "Stepwise Program Decomposition". Show the complete source code to calculate \(1000\) prime numbers as the program from Figure 6 to Figure 12 organized by step-wise program decomposition, and its execution result as a screenshot. Follow the instructions below to run program.

  1. create the Java application project named chapter3kadai2.
  2. create main method to run the program described from Figure 8 to Figure 14 in the project class.
  3. take the screenshot of the execution result.

(3.2.1.節をよく読み、chapter3kadai2プロジェクトを作成し、図8、図10、図12~図14で示されたプログラムを、段階的作成法に基づいて、省略部分を追加して作成し、ソースコードを報告しなさい。また実行結果をスクリーンショットで示しなさい。)