Prime generator