Working prime generator