Add support for computing Prime multiplicity