Implements TransformPrime