refactor PrimeNumberService to separate file