PrimesDemo

The following text was written to the standard output stream when the Primes.java program was executed from IntelliJ.

length of primes array = 4
first prime = 4
last prime = 7
last prime = 7

The intitial array ...
2
3
5
7

The final array ...
2
3
5
2