prime generator demonstration