Implement prime generator game.