Turned the calculatePrimes method into a CalculatePrimes class

This will improve readability since the different methods when lumped to one
class had very different functions. Now one class responsible for each function
of program.