Added prime listing function.