Defined the class PrimeList and its method initVector, also developed the main function to get the n value from the user and pass it to the initVector method