Fast prime number generators for work coding challenge