prime formulas