Adding prime generator