moved prime number generator to helper file