Help with pseudocode only!!!!

Write algorithms and programs to create a class PrimeSequence that implements the Sequence interface – refer to P10.2 on page 508 in the text – and the next() method. This problem utilizes the Worked Example 10.1 (page 473 in the text – go to wiley.com/go/javaexamples for sample downloads). Provide a Demo program that will produce an arbitrary sequence of n prime numbers in table format and will perform an analysis of those n prime numbers.

**Output**: Output will provide a table of **n** prime numbers. The table will be as close to b“square” as possible – i.e. same number of rows and columns – with at most 10 entries per row. All entries will be right-aligned. Additionally, output will include a “histogram” of the occurrences of the last digit [0-9] of each prime number. The histogram will be horizontal (not vertical) and will be scaled (as a percentage %), with a legend at the bottom to explain the scale and display the total count of primes. Each digit’s entry (a sequence of *’s) must fit on a single row, and it must be properly labeled (actual count, scaled %). Scale will need to be flexible. Round up fraction percentages. All output should be handled by the Demo class. A sample output is provided below.

**Input**: Input will be provided on the command-line (see 11.3, pages 527-529 for details). Two input constants will be placed on the command-line upon execution. For example: java SequenceDemo 2 25 ; where the prime sequence will start with the next prime after the first number (3), and the second number (**n**) is the number of prime numbers to be sequenced (25). Both numbers will be integers and both numbers must be 1 or greater. Command-line input will need to be validated. If either input fails validation, your program should display why the input failed, and it should gracefully terminate, using System.exit(1). Instructions for compilation/execution should include command-line input details and requirements, and document that the Sequence interface needs to be in the same directory with your source code.