a tool for prime generating