Introduction:
A prime number is a number that only has 1 and itself as its factors. For example: 13 is a prime number as 13 = 1×13 only, whereas 21 is not a prime number as in addition to 21 = 1×21, we have 21 = 3×7 so 3 and 7 are also its factor. One to four digit numbers has been used to denote the year. For example, the current year is year 2021. Some year number is a prime number, such as year 2017. Some year number is a multiple of two prime numbers, such as year 2021, as 2021 = 43×47 and 43 and 47 are prime numbers.
Problems to be solved by the program:
In this project, you are developing the computer program to solve the following problems for year 1 to year 3000.
• Find all the prime number years.
• Find all the years where the year number is a product of two distinctive prime numbers.
• Find the year (or years) that has the most distinctive prime number factors (not counting itself) and list its factors. (For example: 2021 has two prime number factors 43 and 47; 2020 has three prime number factors: 2,5,101.)
The program should use multiple (≥ 2) functions and output the results in formatted tables with borders/separators and headings.
Deliverables:
1. A project report in a short memo format
2. Document the solution process supported by a flow chart, and tables and figures.
3. Provide a table listing the variables you used in the program and the meaning of each variable.
4. Include a print-out of the program and results.