added quadPrime and ithPrime