Interfaced happyprime class to facilitate mocking.