changed PrimeGenerator class

using NUnit framework. thinking of adding the option to only display the
final prime generated