Implemented FindNextPrimeTask and other needed classes for it