Added prime algorithms.