Added prime functions