Updated prime generators to use difference lists for performance improvements.